A polar coordinate system represents syntax in large language models
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.
Code (0)
등록된 구현이 없습니다.
Tasks
Word EmbeddingsSimilar Papers 제목 키워드 기반
MP-PolarMask: A Faster and Finer Instance Segmentation for Concave Images
While there are a lot of models for instance segmentation, PolarMask stands out as a unique one that represents an object by a Polar coordinate system. With an anchor-box-free design and a single-stage framework that con…
Instance SegmentationSemantic SegmentationThe two-dimensional OLCT of angularly periodic functions in polar coordinates
The two-dimensional (2D) offset linear canonical transform (OLCT) in polar coordinates plays an important role in many fields of optics and signal processing. This paper studies the 2D OLCT in polar coordinates. Firstly,…
Vocal Bursts Valence PredictionAttenuation artifact detection and severity classification in intracoronary OCT using mixed image representations
In intracoronary optical coherence tomography (OCT), blood residues and gas bubbles cause attenuation artifacts that can obscure critical vessel structures. The presence and severity of these artifacts may warrant re-acq…
Artifact DetectionObjects detection for remote sensing images based on polar coordinates
Arbitrary-oriented object detection is an important task in the field of remote sensing object detection. Existing studies have shown that the polar coordinate system has obvious advantages in dealing with the problem of…
Objectobject-detectionObject DetectionOriented Object Detection+1Arbitrary-Oriented Object Detection in Remote Sensing Images Based on Polar Coordinates
Arbitrary-oriented object detection is an important task in the field of remote sensing object detection. Existing studies have shown that the polar coordinate system has obvious advantages in dealing with the problem of…
Objectobject-detectionObject DetectionOne-stage Anchor-free Oriented Object Detection+2