Skip to content

#generative-ai

2 approved public terms with this tag.

Latent operations are edits, traversals, or measurements performed on vectors inside a model latent space. Common operations include shifting a vector along a learned direction, interpolating between two vectors, subtracting one concept vector from another, masking dimensions, or sampling nearby points. These operations are used to explore how a model organizes concepts and to guide generation without rewriting the whole model.

A designer might interpolate between two image embeddings to create a smooth transition from one visual concept to another.

Latent space surgery is a model-editing technique that identifies directions in a latent space corresponding to concepts, styles, or behaviors, then adds, subtracts, or dampens those directions to change outputs or internal representations. Instead of retraining an entire model, practitioners can use targeted vector edits to nudge behavior, such as moving a music embedding from a classical direction toward a jazz direction.

If a vector direction reliably represents sentiment, latent space surgery can increase or reduce that direction to alter the tone of generated text.