Can We Manually Edit the Embedding Vectors?

A discussion about the feasibility of manually editing an embedding

Andrew Zhu (Shudong Zhu)
7 min readMay 28, 2024

When referring to embedding space, we read samples that an embedding is a vector to hold the key features of an object. Those key features are compatible with addition and subtraction for building a new embedding as the following samples show.

So that

This sample is sourced from the wonderful and educational video — “But what is a GPT? Visual intro to transformers | Chapter 5, Deep Learning” [1]— from 3Blue1Brown channel. As shown in Figure 1.

Figure 1. A conceptual explaination to embedding by 3Blue1Brown

While this sample provides a clean and neat conceptional explaination of what is an embedding vector, it also gives the impression that these embedding vectors are editable, and we can manually manipulate the embedding space for variable purposes.

The question is:

Can we really contruct effective embeddings by manually editing?

This article is trying to use real samples and data to find out.

1. Testing methodology

Assume there is a target item associated with the following description:

target_string = "v-neck t-shirt for causal wear…

--

--

No responses yet