atlas

Research map / Large language models / Language, safety and interpretability

A Polar coordinate system represents syntax in large language models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces the Polar Probe, a linear readout of LLM activations where syntactic distance encodes dependency existence and vector direction encodes dependency type and head direction, outperforming the Structural Probe on labeled dependency recovery.

Problem

Structural Probes recover only the existence of dependency relations (via distance) in LLM activations, not their type or direction, leaving the labeled directed syntactic tree unexplained in neural representations.

Approach

Jointly optimize a single linear transform with a structural distance loss and a contrastive angular loss so that edges of the same dependency type are collinear and different types are orthogonal, yielding a polar coordinate code where distance gives existence and angle gives type and direction.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the Polar Probe instead of the Structural ProbeSyntactic dependency type classification · English Web Treebank testAUC: 74% -> 95%Helped
Use the Polar Probe instead of raw activationsSyntactic dependency type classification · English Web Treebank testAUC: 80% -> 95%Helped
Train the Polar Probe on a pretrained language model rather than a random initializationPolar Probe · English Web Treebank testAUC: 50% -> 95%Helped
Use the Polar Probe instead of the Structural ProbeDependency structure recovery · English Web Treebank testUUASNo clear effect
Use the Polar Probe instead of the Structural ProbeLlama-2-7b-hf · English Web Treebank testLAS: around 90%Helped
Use a Polar Probe dimensionality of 128Polar Probe on Llama-2-7b-hf · English Web Treebank testLASHelped

Surprising findings

Limitations

Experimental setup

Datasets: English Web Treebank (EWT) Universal Dependencies Controlled long-nested sentence dataset (100 sentences)

Benchmarks: English Web Treebank (EWT) Controlled long-nested sentence dataset

Metrics: UUAS AUC dependency type accuracy balanced accuracy LAS

Baselines: Structural Probe No Probe Polar Probe Random LLM

Builds on: Structural Probe Universal Dependencies Adam

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy