paper-with-me

홈 › Papers

Vector Arithmetic in Concept and Token Subspaces

2025-11-22 · Sheridan Feucht, Byron Wallace, David Bau arxiv

In order to predict the next token, LLMs must represent semantic and surface-level information about the current word. Previous work identified two types of attention heads that disentangle this information: (i) Concept induction heads, which copy word meanings, and (ii) Token induction heads, which copy literal token representations (Feucht et al., 2025). We show that these heads can be used to identify subspaces of model activations that exhibit coherent semantic structure in Llama-2-7b. Specifically, when we transform hidden states using the attention weights of concept heads, we are able to more accurately perform parallelogram arithmetic (Mikolov et al., 2013) on the resulting hidden states, e.g., showing that "Athens" - "Greece" + "China" = "Beijing". This transformation allows for much higher nearest-neighbor accuracy (80%) than direct use of raw hidden states (47%). Analogously, we show that token heads allow for transformations that reveal surface-level word information in hidden states, allowing for operations like "coding" - "code" + "dance" = "dancing".

📄 PDF Abstract BibTeX arXiv:2511.18162

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Decomposing Task Vectors for Refined Model Editing

2025-12-27 · Hamed Damirchi, Ehsan Abbasnejad, Zhen Zhang, Javen Shi arxiv

Large pre-trained models have transformed machine learning, yet adapting these models effectively to exhibit precise, concept-specific behaviors remains a significant challenge. Task vectors, defined as the difference be…

Image ClassificationGeneral Knowledge

Provable In-Context Vector Arithmetic via Retrieving Task Concepts

2025-08-13 · Dake Bu, Wei Huang, Andi Han, Atsushi Nitanda 외 arxiv

In-context learning (ICL) has garnered significant attention for its ability to grasp functions/tasks from demonstrations. Recent studies suggest the presence of a latent task/function vector in LLMs during ICL. Merullo …

Reasoning about Linguistic Regularities in Word Embeddings using Matrix Manifolds

2015-07-28 · Sridhar Mahadevan, Sarath Chandar

Recent work has explored methods for learning continuous vector space word representations reflecting the underlying semantics of words. Simple vector space arithmetic using cosine distances has been shown to capture cer…

Word Embeddings

SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformers

2026-04-02 · Xiang Yang, Feifei Li, Mi Zhang, Geng Hong 외 arxiv

Recent Text-to-Image (T2I) models based on rectified-flow transformers (e.g., SD3, FLUX) achieve high generative fidelity but remain vulnerable to unsafe semantics, especially when triggered by multi-token interactions. …

Disentangling Latent Embeddings with Sparse Linear Concept Subspaces (SLiCS)

2025-08-27 · Zhi Li, Hau Phan, Matthew Emigh, Austin J. Brockmeier arxiv

Vision-language co-embedding networks, such as CLIP, provide a latent embedding space with semantic information that is useful for downstream tasks. We hypothesize that the embedding space can be disentangled to separate…

Image Retrieval