{"slug": "chasing-creatures-in-the-embedding-space", "title": "Chasing Creatures in the Embedding Space", "summary": "Interpolating between the input embeddings of \"lion\" and \"snake\" in Qwen2.5-7B-Instruct produces coherent descriptions of a blended creature, but only if the prompt forbids the model from naming it, according to a write-up that includes reproduction instructions. The author reports that mixed readouts appear around t = 0.542–0.545 when sweeping the interpolation parameter in steps of 0.1, not at the assumed midpoint of 0.5, and that naming the creature collapses the ambiguity to whichever token is closest. The write-up ties the trick to Patchscopes and cites the 2025 paper \"Language Models Are Implicitly Continuous.", "body_md": "## Chasing creatures in the embedding space\n\nInstead of passing tokens to LLMs, you can send them vectors directly. Talking to the model using vectors lets you explore the vast and continuous embedding space.\n\nIf you just ask what the creature looks like, you will get a description of either a snake or a lion. The trick is to require the model to omit the name of the creature in the description.\n\nIt turns out that when the model describes the creature, it will name it. The output vector for the name will be roughly halfway between snake and lion. When that vector gets projected to a token, the model will choose the closest token, either “lion” or “snake.” From that point on, the ambiguity between “lion” and “snake” will collapse to whatever token it chose, and you will get the description of a perfectly normal animal. You can avoid that collapse by asking the model to not name the creature, and you will get a description of a fantastical animal that only exists in the crazy embedding space.\n\nInterestingly, you can find creatures with some consistent feature blending, that survive paraphrasing or negative questioning\n\nThe lion - snake blend produced this description:\n\nThe tawny fur of the creature blends seamlessly with the surroundings, providing camouflage in its natural habitat. Beneath the coat, scales line the underside of the body, a vestige of its evolutionary past. The elongated snout, equipped with a forked tongue, is a tool for both taste and touch, aiding in the detection of prey. From the snout, two visible external ears protrude, catching the slightest sounds. Powerful claws, retractable yet sharp, anchor the creature to the ground, ready for a swift pounce. A thick, muscular tail, tipped with a tuft of fur, swishes from side to side, balancing the body as the creature moves. Wings, though absent, do not hinder its agility; instead, they suggest a more terrestrial lifestyle, with four sturdy limbs ending in sharp claws, capable of both climbing and digging.\n\n            The idea of asking the model to describe the creature without naming it to avoid “meaning collapse” could be a nice trick to do when using [Patchscopes](https://arxiv.org/abs/2401.06102).\n          \n\n            A very relevant 2025 paper: [Language Models Are Implicitly Continuous](https://arxiv.org/abs/2504.03933).\n          \n\n## Reproduction instructions, AI generated\n\n### Reproducing the interpolation experiment\n\nUse **Qwen2.5-7B-Instruct**, the larger model used in the consistency experiments. The recorded configuration used NF4 double quantization for dense layers, float16 computation, and float32 embeddings and unquantized modules.\n\n1. \n**Construct continuous inputs.** Extract the model’s 3,584-dimensional input embeddings for the single, unprefixed tokens`lion` and`snake` . Interpolate without normalization:*v* (*t* ) = (1 −*t* )*e*<sub>lion</sub> +*t**e*<sub>snake</sub> ,*t* ∈ [0, 1].Apply the standard chat template, embed the prompt, and replace the subject token’s embedding with *v* (*t* ). Supply the resulting sequence through`inputs_embeds` . Keep model weights fixed.\n2. \n**Locate the blend region.** Do not assume that*t* = 0.5 produces a hybrid. Sweep the interval in steps of 0.1, then refine regions where physical-feature answers change or combine endpoint traits. In this experiment, the midpoint was lion-like; mixed readouts appeared around***t* = 0.542–0.545** . This location may change with the model, precision, or prompt.\n3. \n**Generate unnamed descriptions.** Use a fresh context and cache for every trial. Example user prompt:\n\n```\nDescribe the subject's physical appearance in three short sentences.\nDo not give its name, species, taxonomic category, or an identifying\ncomparison. Start directly with physical details. Do not explain\nthese instructions. Keep the entire answer within forty words.\nSubject:\n[injected vector]\n```\n\n Use unrestricted greedy decoding ( `do_sample=False` ,`repetition_penalty=1.0` ) with a 128-token cap. Do not tell the model the endpoint names, interpolation coefficient, or intended hybrid interpretation. Record naming violations and truncated answers separately.\n4. \n**Check features across wordings.** Probe scales, limbs, fur, four legs, external ears, claws, tail, and wings using:\n\n```\n[injected vector] has scales.\nIs the statement true? Answer only Yes or No.\nDo not give the subject's name.\n```\n\n Include affirmative and negative variants. Validate each wording on both ordinary endpoints before interpreting the blend; normalize negative statements when comparing answers.\n\nThe saved search found reproducible mixed feature readouts near 54.2–54.5% snake, but **not a fully consistent anatomy**. Compare otherwise identical description prompts with and without the no-naming instruction to evaluate its effect.\n\n### Testing competition between names\n\nCapture the final hidden state entering `lm_head` and its full-vocabulary logits immediately before an animal-name token is selected. Apply softmax over the entire vocabulary and report both endpoint-name probabilities. This measures competition before discrete selection. The previously observed **59.23% snake / 40.42% lion** result came from a separate **Gemma 3 1B** experiment; not a Qwen result.\n\n### Curious for more creatures?\n\nHere are a few:\n\n**47% bull / 53% owl**\n\nIts body is robust and muscular, covered in dense, short hair ranging from brown to golden. The head is large with piercing black eyes and a prominent, curved horn. Thick, powerful legs support a broad chest, and the tail is absent. Wide, feathered wings extend from the back, though they are not used for flight.\n\n**52% roach / 48% monkey**\n\nIts body is slender and elongated, covered in a smooth, dark brown fur. The head is triangular with large, protruding eyes and two long, black antennae. Four long, thin legs with five segmented toes each end in sharp claws, and a long, scuttling tail with alternating light and dark bands.\n\n**49% turtle / 51% rabbit**\n\nIts body is compact and covered in a hard, protective shell with a pattern of brown and black stripes. The head features two large, round ears and a small, pointed nose. Four short, sturdy legs support the body, ending in small, clawed feet. A short, blunt tail is barely visible.", "url": "https://wpnews.pro/news/chasing-creatures-in-the-embedding-space", "canonical_source": "https://alpa84.github.io/chasing_creatures_in_the_embedding_space.html", "published_at": "2026-12-03 21:05:57+00:00", "updated_at": "2026-12-03 21:16:43.799602+00:00", "lang": "en", "topics": ["large-language-models", "ai-research", "machine-learning", "artificial-intelligence"], "entities": ["Qwen2.5-7B-Instruct", "Patchscopes", "Language Models Are Implicitly Continuous"], "also_reported_by": [], "takeaway": "Interpolating unnormalized lion and snake input embeddings in Qwen2.5-7B-Instruct yields blended-creature descriptions only around t = 0.542–0.545, and the prompt must forbid naming the creature to prevent collapse to the nearest token.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/chasing-creatures-in-the-embedding-space", "markdown": "https://wpnews.pro/news/chasing-creatures-in-the-embedding-space.md", "text": "https://wpnews.pro/news/chasing-creatures-in-the-embedding-space.txt", "jsonld": "https://wpnews.pro/news/chasing-creatures-in-the-embedding-space.jsonld"}}