mlsanityData to 7 Oct 2026

Interpreting token compositionality in LLMs: A robustness analysis

arXiv 2410.12924 ↗First posted 16 Oct 2024cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Understanding the internal mechanisms of large language models (LLMs) is integral to enhancing their reliability, interpretability, and inference processes. We present Constituent-Aware Pooling (CAP), a methodology designed to analyse how LLMs process compositional linguistic structures. Grounded in principles of compositionality, mechanistic interpretability, and information theory, CAP systematically intervenes in model activations through constituent-based pooling at various model levels. Our experiments on inverse definition modelling, hypernym and synonym prediction reveal critical insights into transformers' limitations in handling compositional abstractions. No specific layer integrates tokens into unified semantic representations based on their constituent parts. We observe fragmented information processing, which intensifies with model size, suggesting that larger models struggle more with these interventions and exhibit greater information dispersion. This fragmentation likely stems from transformers' training objectives and architectural design, preventing systematic and cohesive representations. Our findings highlight fundamental limitations in current transformer architectures regarding compositional semantics processing and model interpretability, underscoring the critical need for novel approaches in LLM design to address these challenges.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 17 of its 48 references that are in the map. First posted on arXiv 16 Oct 2024.

Builds on

17 of 48 references.

References · 17

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  4. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  5. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  6. 2022Mass-Editing Memory in a Transformercited by 976
  7. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  8. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  9. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  10. 2018Constituency Parsing with a Self-Attentive Encodercited by 196
  11. 2023PMET: Precise Model Editing in a Transformercited by 170
  12. 2018Multilingual Constituency Parsing with Self-Attention and Pre-Trainingcited by 117
5 more
  1. 2021The paradox of the compositionality of natural language: a neural machine translation case studycited by 58
  2. 2020Assessing Phrasal Representation and Composition in Transformerscited by 41
  3. 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
  4. 2023Are Large Language Models Really Robust to Word-Level Perturbations?cited by 32
  5. 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.