A Polar Coordinate System Explicitly Represents Syntax in Language Models. Diego Simon, P. J., d'Ascoli , S., Chemla, E., Lakretz, Y., & King, J. In NeurIPS: The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
Paper abstract bibtex 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 \emphexistence 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.
@inproceedings{Diego-PolarSyntax,
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 \emph{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.},
author = {Pablo J. {Diego Simon} and St{\'e}phane d'Ascoli and Emmanuel Chemla and Yair Lakretz and Jean-Remi King},
booktitle = {NeurIPS: The Thirty-eighth Annual Conference on Neural Information Processing Systems},
date-added = {2024-09-25 13:42:32 -0600},
date-modified = {2024-11-22 12:28:51 -0600},
title = {A Polar Coordinate System Explicitly Represents Syntax in Language Models},
url = {https://openreview.net/forum?id=x2780VcMOI},
year = {2024},
bdsk-url-1 = {https://openreview.net/forum?id=x2780VcMOI}}
Downloads: 0
{"_id":"iXtGAXQRWDDKhDcPp","bibbaseid":"diegosimon-dascoli-chemla-lakretz-king-apolarcoordinatesystemexplicitlyrepresentssyntaxinlanguagemodels-2024","author_short":["Diego Simon, P. J.","d'Ascoli , S.","Chemla, E.","Lakretz, Y.","King, J."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","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 \\emphexistence 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.","author":[{"firstnames":["Pablo","J."],"propositions":[],"lastnames":["Diego Simon"],"suffixes":[]},{"firstnames":["Stéphane"],"propositions":["d'Ascoli"],"lastnames":[],"suffixes":[]},{"firstnames":["Emmanuel"],"propositions":[],"lastnames":["Chemla"],"suffixes":[]},{"firstnames":["Yair"],"propositions":[],"lastnames":["Lakretz"],"suffixes":[]},{"firstnames":["Jean-Remi"],"propositions":[],"lastnames":["King"],"suffixes":[]}],"booktitle":"NeurIPS: The Thirty-eighth Annual Conference on Neural Information Processing Systems","date-added":"2024-09-25 13:42:32 -0600","date-modified":"2024-11-22 12:28:51 -0600","title":"A Polar Coordinate System Explicitly Represents Syntax in Language Models","url":"https://openreview.net/forum?id=x2780VcMOI","year":"2024","bdsk-url-1":"https://openreview.net/forum?id=x2780VcMOI","bibtex":"@inproceedings{Diego-PolarSyntax,\n\tabstract = {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 \\emph{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.},\n\tauthor = {Pablo J. {Diego Simon} and St{\\'e}phane d'Ascoli and Emmanuel Chemla and Yair Lakretz and Jean-Remi King},\n\tbooktitle = {NeurIPS: The Thirty-eighth Annual Conference on Neural Information Processing Systems},\n\tdate-added = {2024-09-25 13:42:32 -0600},\n\tdate-modified = {2024-11-22 12:28:51 -0600},\n\ttitle = {A Polar Coordinate System Explicitly Represents Syntax in Language Models},\n\turl = {https://openreview.net/forum?id=x2780VcMOI},\n\tyear = {2024},\n\tbdsk-url-1 = {https://openreview.net/forum?id=x2780VcMOI}}\n\n","author_short":["Diego Simon, P. J.","d'Ascoli , S.","Chemla, E.","Lakretz, Y.","King, J."],"key":"Diego-PolarSyntax","id":"Diego-PolarSyntax","bibbaseid":"diegosimon-dascoli-chemla-lakretz-king-apolarcoordinatesystemexplicitlyrepresentssyntaxinlanguagemodels-2024","role":"author","urls":{"Paper":"https://openreview.net/forum?id=x2780VcMOI"},"metadata":{"authorlinks":{}}},"bibtype":"inproceedings","biburl":"http://www.emmanuel.chemla.free.fr/Material/EmmanuelChemlaBibliography.bib","dataSources":["tjiGpM3QkXrAR3DJb"],"keywords":[],"search_terms":["polar","coordinate","system","explicitly","represents","syntax","language","models","diego simon","d'ascoli ","chemla","lakretz","king"],"title":"A Polar Coordinate System Explicitly Represents Syntax in Language Models","year":2024}