Lune

NeurIPS2024Top-tier venue

A Polar coordinate system represents syntax in large language models

Pablo Diego-Simón, Stéphane d'Ascoli, Emmanuel Chemla, Yair Lakretz, Jean-Remi King

Abstract

Originally formalized with symbolic representations, syntactic trees may also be effectively represented in the activations of large language models (LLMs). Indeed, a 'Structural Probe' can find a subspace of neural activations, where syntactically related words are relatively close to one-another. However, this syntactic code remains incomplete: the distance between the Structural Probe word embeddings can represent the existence but not the type and direction of syntactic relations. Here, we hypothesize that syntactic relations are, in fact, coded by the relative direction between nearby embeddings. To test this hypothesis, we introduce a 'Polar Probe' trained to read syntactic relations from both the distance and the direction between word embeddings. Our approach reveals three main findings. First, our Polar Probe successfully recovers the type and direction of syntactic relations, and substantially outperforms the Structural Probe by nearly two folds. Second, we confirm that this polar coordinate system exists in a low-dimensional subspace of the intermediate layers of many LLMs and becomes increasingly precise in the latest frontier models. Third, we demonstrate with a new benchmark that similar syntactic relations are coded similarly across the nested levels of syntactic trees. Overall, this work shows that LLMs spontaneously learn a geometry of neural activations that explicitly represents the main symbolic structures of linguistic theory.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Language acquisition: do children and language models follow similar learning stages? cites Neural Language Models are not Born Equal to Fit Brain Data, but Training Helps
  • Gated Tree Cross-Attention for Checkpoint-Compatible Syntax Injection in Decoder-Only LLMs cites Mechanisms vs. Outcomes: Probing for Syntax Fails to Explain Performance on Targeted Syntactic Evaluations
  • Neural Language Models are not Born Equal to Fit Brain Data, but Training Helps cites Disentangling syntax and semantics in the brain with deep networks
  • Can fMRI reveal the representation of syntactic structure in the brain? cites Disentangling syntax and semantics in the brain with deep networks
  • Differential syntactic and semantic encoding in LLMs cites Disentangling syntax and semantics in the brain with deep networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Differential syntactic and semantic encoding in LLMsSantiago Acevedo, Alessandro Laio, Marco BaroniICML 2026 · 7 citations
  2. From Directions to Regions: Decomposing Activations in Language Models via Local GeometryOr Shafran, Shaked Ronen, Omri Fahn, Shauli Ravfogel et al.ICML 2026 · 7 citations
  3. Mechanisms vs. Outcomes: Probing for Syntax Fails to Explain Performance on Targeted Syntactic EvaluationsAnanth Agarwal, Jasper Jian, Christopher D. Manning, Shikhar MurtyEMNLP 2025 · 5 citations
  4. Deep networks learn to parse uniform-depth context-free languages from local statisticsJack T. Parley, Francesco Cagnetta, Matthieu WyartICML 2026 · 4 citations
  5. Gated Tree Cross-Attention for Checkpoint-Compatible Syntax Injection in Decoder-Only LLMsXinyu Gao, Shaonan Wang, Nai DingACL 2026

Builds on10

  1. Hyperbolic Image-text RepresentationsKaran Desai, Maximilian Nickel, Tanmay Rajpurohit, Justin Johnson et al.ICML 2023 · 137 citations
  2. Disentangling syntax and semantics in the brain with deep networksCharlotte Caucheteux, Alexandre Gramfort, Jean-Remi KingICML 2021 · 96 citations
  3. Can fMRI reveal the representation of syntactic structure in the brain?Aniketh Janardhan Reddy, Leila WehbeNeurIPS 2021 · 54 citations
  4. Neural Language Models are not Born Equal to Fit Brain Data, but Training HelpsAlexandre Pasquiou, Yair Lakretz, John T. Hale, Bertrand Thirion et al.ICML 2022 · 44 citations
  5. Language acquisition: do children and language models follow similar learning stages?Linnea Evanson, Yair Lakretz, Jean-Rémi KingACL Findings 2023 · 21 citations

Related papers

  1. Probing BERT in Hyperbolic SpacesBoli Chen, Yao Fu, Guangwei Xu, Pengjun Xie et al.ICLR 2021 · 19 citations
  2. AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language modelsJosé Antonio Hernández López, Martin Weyssow, Jesús Sánchez Cuadrado, Houari A. SahraouiASE 2022 · 18 citations
  3. What if This Modified That? Syntactic Interventions with Counterfactual EmbeddingsMycal Tucker, Peng Qian, Roger LevyACL Findings 2021 · 16 citations
  4. Probing LLMs for Joint Encoding of Linguistic CategoriesGiulio Starace, Konstantinos Papakostas, Rochelle Choenni, Apostolos Panagiotopoulos et al.EMNLP Findings 2023 · 4 citations
  5. Do Neural Language Models Show Preferences for Syntactic Formalisms?Artur Kulmizev, Vinit Ravishankar, Mostafa Abdou, Joakim NivreACL 2020 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines