The Linear Representation Hypothesis and the Geometry of Large Language Models. Park, K., Choe, Y. J., & Veitch, V. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., & Berkenkamp, F., editors, Proceedings of the 41st International Conference on Machine Learning, volume 235, of Proceedings of Machine Learning Research, pages 39643–39666, July, 2024. PMLR.
Paper abstract bibtex Informally, the "linear representation hypothesis" is the idea that high-level concepts are represented linearly as directions in some representation space. In this paper, we address two closely related questions: What does "linear representation" actually mean? And, how do we make sense of geometric notions (e.g., cosine similarity and projection) in the representation space? To answer these, we use the language of counterfactuals to give two formalizations of linear representation, one in the output (word) representation space, and one in the input (context) space. We then prove that these connect to linear probing and model steering, respectively. To make sense of geometric notions, we use the formalization to identify a particular (non-Euclidean) inner product that respects language structure in a sense we make precise. Using this \textlessem\textgreatercausal inner product\textless/em\textgreater, we show how to unify all notions of linear representation. In particular, this allows the construction of probes and steering vectors using counterfactual pairs. Experiments with LLaMA-2 demonstrate the existence of linear representations of concepts, the connection to interpretation and control, and the fundamental role of the choice of inner product.
@inproceedings{park_linear_2024,
series = {Proceedings of {Machine} {Learning} {Research}},
title = {The {Linear} {Representation} {Hypothesis} and the {Geometry} of {Large} {Language} {Models}},
volume = {235},
url = {https://proceedings.mlr.press/v235/park24c.html},
abstract = {Informally, the "linear representation hypothesis" is the idea that high-level concepts are represented linearly as directions in some representation space. In this paper, we address two closely related questions: What does "linear representation" actually mean? And, how do we make sense of geometric notions (e.g., cosine similarity and projection) in the representation space? To answer these, we use the language of counterfactuals to give two formalizations of linear representation, one in the output (word) representation space, and one in the input (context) space. We then prove that these connect to linear probing and model steering, respectively. To make sense of geometric notions, we use the formalization to identify a particular (non-Euclidean) inner product that respects language structure in a sense we make precise. Using this {\textless}em{\textgreater}causal inner product{\textless}/em{\textgreater}, we show how to unify all notions of linear representation. In particular, this allows the construction of probes and steering vectors using counterfactual pairs. Experiments with LLaMA-2 demonstrate the existence of linear representations of concepts, the connection to interpretation and control, and the fundamental role of the choice of inner product.},
booktitle = {Proceedings of the 41st {International} {Conference} on {Machine} {Learning}},
publisher = {PMLR},
author = {Park, Kiho and Choe, Yo Joong and Veitch, Victor},
editor = {Salakhutdinov, Ruslan and Kolter, Zico and Heller, Katherine and Weller, Adrian and Oliver, Nuria and Scarlett, Jonathan and Berkenkamp, Felix},
month = jul,
year = {2024},
pages = {39643--39666},
}
Downloads: 0
{"_id":"PTbo3q9Kg9Tvz6BJ4","bibbaseid":"park-choe-veitch-thelinearrepresentationhypothesisandthegeometryoflargelanguagemodels-2024","author_short":["Park, K.","Choe, Y. J.","Veitch, V."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","series":"Proceedings of Machine Learning Research","title":"The Linear Representation Hypothesis and the Geometry of Large Language Models","volume":"235","url":"https://proceedings.mlr.press/v235/park24c.html","abstract":"Informally, the \"linear representation hypothesis\" is the idea that high-level concepts are represented linearly as directions in some representation space. In this paper, we address two closely related questions: What does \"linear representation\" actually mean? And, how do we make sense of geometric notions (e.g., cosine similarity and projection) in the representation space? To answer these, we use the language of counterfactuals to give two formalizations of linear representation, one in the output (word) representation space, and one in the input (context) space. We then prove that these connect to linear probing and model steering, respectively. To make sense of geometric notions, we use the formalization to identify a particular (non-Euclidean) inner product that respects language structure in a sense we make precise. Using this \\textlessem\\textgreatercausal inner product\\textless/em\\textgreater, we show how to unify all notions of linear representation. In particular, this allows the construction of probes and steering vectors using counterfactual pairs. Experiments with LLaMA-2 demonstrate the existence of linear representations of concepts, the connection to interpretation and control, and the fundamental role of the choice of inner product.","booktitle":"Proceedings of the 41st International Conference on Machine Learning","publisher":"PMLR","author":[{"propositions":[],"lastnames":["Park"],"firstnames":["Kiho"],"suffixes":[]},{"propositions":[],"lastnames":["Choe"],"firstnames":["Yo","Joong"],"suffixes":[]},{"propositions":[],"lastnames":["Veitch"],"firstnames":["Victor"],"suffixes":[]}],"editor":[{"propositions":[],"lastnames":["Salakhutdinov"],"firstnames":["Ruslan"],"suffixes":[]},{"propositions":[],"lastnames":["Kolter"],"firstnames":["Zico"],"suffixes":[]},{"propositions":[],"lastnames":["Heller"],"firstnames":["Katherine"],"suffixes":[]},{"propositions":[],"lastnames":["Weller"],"firstnames":["Adrian"],"suffixes":[]},{"propositions":[],"lastnames":["Oliver"],"firstnames":["Nuria"],"suffixes":[]},{"propositions":[],"lastnames":["Scarlett"],"firstnames":["Jonathan"],"suffixes":[]},{"propositions":[],"lastnames":["Berkenkamp"],"firstnames":["Felix"],"suffixes":[]}],"month":"July","year":"2024","pages":"39643–39666","bibtex":"@inproceedings{park_linear_2024,\n\tseries = {Proceedings of {Machine} {Learning} {Research}},\n\ttitle = {The {Linear} {Representation} {Hypothesis} and the {Geometry} of {Large} {Language} {Models}},\n\tvolume = {235},\n\turl = {https://proceedings.mlr.press/v235/park24c.html},\n\tabstract = {Informally, the \"linear representation hypothesis\" is the idea that high-level concepts are represented linearly as directions in some representation space. In this paper, we address two closely related questions: What does \"linear representation\" actually mean? And, how do we make sense of geometric notions (e.g., cosine similarity and projection) in the representation space? To answer these, we use the language of counterfactuals to give two formalizations of linear representation, one in the output (word) representation space, and one in the input (context) space. We then prove that these connect to linear probing and model steering, respectively. To make sense of geometric notions, we use the formalization to identify a particular (non-Euclidean) inner product that respects language structure in a sense we make precise. Using this {\\textless}em{\\textgreater}causal inner product{\\textless}/em{\\textgreater}, we show how to unify all notions of linear representation. In particular, this allows the construction of probes and steering vectors using counterfactual pairs. Experiments with LLaMA-2 demonstrate the existence of linear representations of concepts, the connection to interpretation and control, and the fundamental role of the choice of inner product.},\n\tbooktitle = {Proceedings of the 41st {International} {Conference} on {Machine} {Learning}},\n\tpublisher = {PMLR},\n\tauthor = {Park, Kiho and Choe, Yo Joong and Veitch, Victor},\n\teditor = {Salakhutdinov, Ruslan and Kolter, Zico and Heller, Katherine and Weller, Adrian and Oliver, Nuria and Scarlett, Jonathan and Berkenkamp, Felix},\n\tmonth = jul,\n\tyear = {2024},\n\tpages = {39643--39666},\n}\n\n\n\n\n\n\n\n","author_short":["Park, K.","Choe, Y. J.","Veitch, V."],"editor_short":["Salakhutdinov, R.","Kolter, Z.","Heller, K.","Weller, A.","Oliver, N.","Scarlett, J.","Berkenkamp, F."],"key":"park_linear_2024","id":"park_linear_2024","bibbaseid":"park-choe-veitch-thelinearrepresentationhypothesisandthegeometryoflargelanguagemodels-2024","role":"author","urls":{"Paper":"https://proceedings.mlr.press/v235/park24c.html"},"metadata":{"authorlinks":{}}},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero-group/dcambrid/5266609","dataSources":["pzyFFGWvxG2bs63zP","e4qi3jRmPhPzc7C9a"],"keywords":[],"search_terms":["linear","representation","hypothesis","geometry","large","language","models","park","choe","veitch"],"title":"The Linear Representation Hypothesis and the Geometry of Large Language Models","year":2024}