arXiv Science⌕ Search

arXiv subjects

Lachlan Cowley

Publications and source records attributed to Lachlan Cowley.

2 recordsLinked to original sources

How Relations Impose Embedding-Space Structure

Language models are known to encode simple relations, such as synonymy, in the geometry of their representations. It is unclear whether they also encode complex patterns of relationships such as those that drive analogy. We present a simple method, with no learned parameters, based on comparing the internal structural arrangements between disparate domains, to test this. Using our method we find over multiple models that representations are arranged consistently to encode complex relationship similarities. Models align distant representation clouds so that facets of meaning are easily comparable under simple mappings. Our work extends mechanistic accounts of representation space to the relative arrangement of representations that may be only weakly related to one another, showing that representation geometry is far richer than previously thought. Code and data: https://github.com/lcowley7/embedded_relationships

cs.CL↗

AutoLexSteer: Automatic Contrast Construction for Lexical Activation Steering

Steering vectors have rapidly emerged as a popular and effective method for guiding the output of LLMs in very specific ways. But constructing accurate steering vectors is a difficult manual process due to the opacity of embeddings. We introduce Hangman, a novel type of steering vector that operates using word senses, as well as AutoLexSteer, the first fully automated process for building steering vectors. AutoLexSteer employs families of closely-related words extracted from WordNet to specify both the steering source to be avoided and the desired steering target. The steering vectors are quite precise, can be used to steer at the level of words and sets of word senses (meanings), and are able to steer certain LLM behaviors like sycophancy. The dataset and code can be found at https://github.com/ShuheWang1998/autolexsteer.

cs.CL↗