SYNTHESIS NOTE
Topics›Cognitive Models Latent›this note

How do language models encode syntactic relations geometrically?

Do LLM embeddings use distance alone or also direction to represent syntax? Understanding whether neural networks can spontaneously develop symbolic-compatible geometric structures.

Synthesis note · 2026-02-23 · sourced from Cognitive Models Latent

The symbol-vector divide has been a core challenge in cognitive science since Smolensky (1987): syntactic trees are symbolic structures that seem incompatible with the vectorial representations of neural networks. The Structural Probe (Hewitt & Manning 2019) made partial progress — it showed that the existence of syntactic links between words is encoded in the distance between their corresponding embeddings. But whether the type and direction of syntactic relations were represented remained unknown.

The Polar Probe answers this: syntactic relations are coded by the relative direction between nearby embeddings, not just their distance. Using both distance and direction (a polar coordinate system), the Polar Probe recovers syntactic relation types and directions with nearly 2x the accuracy of the distance-only Structural Probe.

Three key findings:

  1. Complete syntactic encoding. The polar coordinate system captures existence, type, AND direction of syntactic relations — the full specification of a dependency tree is encoded in the geometry of LLM activations.

  2. Low-dimensional subspace. This encoding exists in a low-dimensional subspace of intermediate layers across many LLMs, and becomes increasingly precise in frontier models. This is not a brute-force representation but a compressed, structured one.

  3. Nested consistency. Similar syntactic relations are coded similarly across nested levels of syntactic trees. The encoding is not ad hoc for each syntactic instance but systematic — a genuine coordinate system.

The resolution of the symbol-vector divide is significant: LLMs don't need explicit symbolic mechanisms to represent symbolic structures. They spontaneously learn a geometry that explicitly represents the main symbolic structures of linguistic theory. This doesn't mean LLMs "understand" syntax in a human sense, but it demonstrates that connectionist architectures can natively develop symbolic-compatible representations — the two paradigms are not incompatible.

This connects to Do transformer static embeddings actually encode semantic meaning? at a different structural level: static embeddings encode semantic features, while intermediate activations encode syntactic relations. Together they suggest LLM representations are far richer and more structured than the "statistical patterns" dismissal implies.

Inquiring lines that read this note 58

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

How do mechanistic features and representations drive model behavior? What determines how neural networks organize their internal knowledge representations? What explains the gap between LLM semantic understanding and production? Does learning articulatory physics explain speech communication superiority? What fundamental limitations prevent embeddings from solving task-relevant retrieval? What distinguishes genuine understanding from correct linguistic performance? Do language models truly understand their encoded knowledge or merely retrieve patterns? What makes context and memory handling unique in persistent AI systems? Why do language models systematically fail at causal reasoning? Can language models develop genuine communicative grounding with humans? Do language models learn underlying linguistic structure or merely surface patterns? How does explicit structure improve LLM reasoning on complex tasks? Do language models genuinely understand or primarily match statistical patterns? Can scaling alone produce compositional generalization in neural networks? How can we distinguish genuine model self-knowledge from behavioral performance? How do transformer circuits and attention mechanisms enable or limit reasoning? How can parameter sparsity improve interpretability while maintaining model capability? Should GUI agents use structured UI perception instead of raw pixels? Does reasoning architecture matter more than model scale? Is model misalignment inherent to base models or induced by alignment procedures? Can formal verification substitute for human understanding of AI proofs?

Related concepts in this collection 5

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
13 direct connections · 106 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

a polar coordinate system in llm activations encodes both type and direction of syntactic relations — resolving the symbol-vector divide