Probing LLMs for Joint Encoding of Linguistic Categories

Giulio Starace, Konstantinos Papakostas, Rochelle Choenni, Apostolos Panagiotopoulos, Matteo Rosati +2 more
10/28/2023
cs.CLcs.AIcs.LG

Official code: thesofakillers/infoshare (7 stars, last commit 2023-12-30).

Abstract

Large Language Models (LLMs) exhibit impressive performance on a range of NLP tasks, due to the general-purpose linguistic knowledge acquired during pretraining. Existing model interpretability research (Tenney et al., 2019) suggests that a linguistic hierarchy emerges in the LLM layers, with lower layers better suited to solving syntactic tasks and higher layers employed for semantic processing. Yet, little is known about how encodings of different linguistic phenomena interact within the models and to what extent processing of linguistically-related categories relies on the same, shared model representations. In this paper, we propose a framework for testing the joint encoding of linguistic categories in LLMs. Focusing on syntax, we find evidence of joint encoding both at the same (related part-of-speech (POS) classes) and different (POS classes and related syntactic dependency relations) levels of linguistic hierarchy. Our cross-lingual experiments show that the same patterns hold across languages in multilingual LLMs.

View on arXivView PDF

Code Implementations(1)

Official repository for the paper: "Probing LLMs for Joint Encoding of Linguistic Categories." Findings of EMNLP 2023.

70Shell, PythonApr 29, 20222 years ago
deep-learningdependency-parsinginterpretabilitymachine-learningparts-of-speech+3 more

Similar Papers

Cite this paper

@article{starace2023probing,
  title  = {Probing LLMs for Joint Encoding of Linguistic Categories},
  author = {Giulio Starace and Konstantinos Papakostas and Rochelle Choenni and Apostolos Panagiotopoulos and Matteo Rosati and Alina Leidinger and Ekaterina Shutova},
  year   = {2023},
  eprint = {2310.18696},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.18696v1}
}

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/2310.18696.svg)](https://codeofpaper.com/paper/2310.18696)

Discussion