Linguistic Minimal Pairs Elicit Linguistic Similarity in Large Language Models

Xinyu Zhou, Delong Chen, Samuel Cahyawijaya, Xufeng Duan, Zhenguang G. Cai
9/19/2024
cs.CL

Official code: ChenDelong1999/Linguistic-Similarity (7 stars, last commit 2025-01-21).

Abstract

We introduce a novel analysis that leverages linguistic minimal pairs to probe the internal linguistic representations of Large Language Models (LLMs). By measuring the similarity between LLM activation differences across minimal pairs, we quantify the and gain insight into the linguistic knowledge captured by LLMs. Our large-scale experiments, spanning 100+ LLMs and 150k minimal pairs in three languages, reveal properties of linguistic similarity from four key aspects: consistency across LLMs, relation to theoretical categorizations, dependency to semantic context, and cross-lingual alignment of relevant phenomena. Our findings suggest that 1) linguistic similarity is significantly influenced by training data exposure, leading to higher cross-LLM agreement in higher-resource languages. 2) Linguistic similarity strongly aligns with fine-grained theoretical linguistic categories but weakly with broader ones. 3) Linguistic similarity shows a weak correlation with semantic similarity, showing its context-dependent nature. 4) LLMs exhibit limited cross-lingual alignment in their understanding of relevant linguistic phenomena. This work demonstrates the potential of minimal pairs as a window into the neural representations of language in LLMs, shedding light on the relationship between LLMs and linguistic theory. Codes and data are available at https://github.com/ChenDelong1999/Linguistic-Similarity

View on arXivView PDF

Code Implementations(1)

Official repo of paper "Linguistic Minimal Pairs Elicit Linguistic Similarity in Large Language Models" in NeurIPS 2024 Workshop on Foundation Model Interventions (MINT) and COLING 2025

70Sep 17, 20241 years ago
computational-linguisticslarge-language-models

Similar Papers

Cite this paper

@article{zhou2024linguistic,
  title  = {Linguistic Minimal Pairs Elicit Linguistic Similarity in Large Language Models},
  author = {Xinyu Zhou and Delong Chen and Samuel Cahyawijaya and Xufeng Duan and Zhenguang G. Cai},
  year   = {2024},
  eprint = {2409.12435},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12435v2}
}

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

Discussion