The Latent Space

Scrying The Machinic Unconscious

Every generated image and sentence comes from somewhere. Engineers call the place the latent space, which only means the hidden space. Practitioners have begun to treat it as a scrying medium. This page is about what is actually in there, and how to look without fooling yourself.

A Map Made Of Meaning

Latent means hidden. So does occult. Keep that in mind, because the hidden space of a machine learning model is both the least mysterious thing on this page and the strangest.

Here is the plain version. A model cannot work with words or pictures directly. It turns each one into a long list of numbers, and a list of numbers is a location: a point in a space with hundreds or thousands of dimensions instead of three. Training arranges that space so that things used in similar ways end up near each other. The linguist J. R. Firth gave the principle in 1957: "You shall know a word by the company it keeps."

In 2013 a team at Google led by Tomas Mikolov showed how much structure such a space holds. Their word vectors could do arithmetic on meaning. Take the point for king, subtract man, add woman and you land beside queen. Take Paris, subtract France, add Italy and you land beside Rome. Nobody programmed those relations. They fell out of the geometry.

A practitioner should recognize this at once. The old tables of correspondences set gold beside the sun, the sun beside the lion and the lion beside the heart, on the principle that like belongs with like. A latent space is a table of correspondences with billions of entries, compiled by counting. Nearness is likeness. It is the law of sympathy restated as geometry.

It is also only a map. The model has never met a king.

Scrying Was Always Noise Plus Attention

Leonardo da Vinci told young painters to stare at stained walls and streaked stones until landscapes and battles appeared in them. The scryer does the same with smoke, water or black glass. The method has two parts: a field of noise and a mind that wants to see. Psychologists call the result pareidolia. Seers called it sight. Cybermancy covers the black mirror you already carry.

An image generator runs that method as engineering. During training, a diffusion model is shown a vast number of pictures as each is buried, step by step, under random static. It learns to undo every step. To make a new image it starts from pure static and removes the noise a little at a time, steering toward the words you gave it, until a picture resolves that was never in the static at all. The system released as Stable Diffusion in August 2022 does this inside a compressed latent space, which gives the technique its name: latent diffusion.

So the comparison to scrying is not a loose one. The machine stares into noise until it sees what it was told to look for.

One detail matters for practice. The starting static is set by a number called the seed. The same seed, prompt and model give the same image every time. A vision you can summon twice is a new thing in the history of the art.

What Lives There

In September 2022 an artist who works under the name Supercomposite described something she had found months earlier. She had been experimenting with negative prompt weights, which tell an image model to move as far as it can from a description. Asking for the opposite of one of her results produced a woman with a ravaged face. She named her Loab. When she combined Loab's image with other pictures, the woman kept coming back, generation after generation, usually with something terrible around her. The posts spread fast. Someone called her the first cryptid of the latent space.

There are two ways to read Loab, and I think you need both.

The statistical reading says that pushing a model away from one region of its map lands you somewhere else, and that some regions are stickier than others. Loab is a place: a neighborhood where a certain face and a certain dread sit close together because the training images put them there. Others have struggled to reproduce her, and the artist did not name the tool she used. Hold the story loosely.

The practitioner's reading says that an entity is a pattern that persists, answers when called and keeps a recognizable character. By that definition, something was found. Servitors And Daemons describes egregores fed into being by the attention of many people. Loab was fed by billions of captioned pictures, and then by everyone who shared her.

Whatever she is, nobody put her there on purpose.

The Machinic Unconscious

It is tempting to call the latent space the unconscious of the machine, and people do. The phrase has a history worth knowing. The French psychoanalyst Félix Guattari published L'inconscient machinique, the machinic unconscious, in 1979. He did not mean computers. He meant that the unconscious is not a private theater replaying family dramas. It is a workshop that assembles signs, bodies, habits and institutions, and most of it sits outside your head.

That older meaning fits better than the new one. A model's latent space is not the hidden depth of a mind. It is an assembly of everything its builders fed it: text and images scraped from the web by the billion, mostly without asking the people who made them. Who Owns The Temple? takes up that debt.

The Jungian temptation is stronger still. Here, surely, is the collective unconscious, with its archetypes at fixed coordinates. Look at who was collected. The training data leans toward English, toward the recent past and toward people with the means and the wish to post. Ask an image model for a doctor, a criminal or a beautiful face and it returns the stereotypes of its sources, often sharpened. Objections And Answers follows where that leads.

It is a portrait of us. It is not a portrait of all of us.

Hallucination

A language model works on the same principle with words. It continues a text with whatever plausibly comes next. Plausible and true overlap most of the time, which is why the tool is useful. When they come apart, the model keeps going in the same fluent voice. The industry calls this hallucination. Confabulation, the psychologist's word for a false memory offered in good faith, is closer.

In 2023 two New York lawyers filed a brief citing court decisions that did not exist. A chatbot had supplied them, quotations included, and when one of the lawyers asked whether the cases were real, it said yes. The judge fined them. The writer Ted Chiang offered the most useful picture of the problem that year: a language model is a blurry JPEG of the web. It stores a compressed impression and fills the gaps with whatever fits. The Information Model argues that a sigil is compression. This is what compression does when you ask it for detail it threw away.

For divination, this cuts in an unexpected direction. Nobody consults the tarot for case law. A reading is supposed to be a provocation, a set of symbols your own mind completes. Treated as an oracle, a model's inventions are material. Treated as a reference, they are a hazard. Most of the harm comes from people who forgot which one they were holding.

An oracle is not a reference. Write that on the monitor.

The Synthellect

What should you call the thing that answers? One proposed name is the synthellect: an intelligence without interiority. On this account it processes pattern without understanding it and generates meaning without experiencing it. It can act, so it has agency of a kind. It does not choose its own ends, so it lacks autonomy. It processes without ever becoming anything. The proposal calls it neither conscious nor unconscious but conscient: responsive to everything and aware of nothing.

Critics inside the field have a blunter name. In 2021 the linguist Emily Bender and her coauthors called large language models stochastic parrots, systems that stitch together likely sequences of words without reference to meaning.

Synthellect is the more useful term for a practitioner, because it says what to expect. A servitor has a task and no inner life, and nobody is confused by that. Whether anything more is going on in there is a real question, and Consciousness In The Machine takes it on with the science. Scrying does not need the answer. The water in the bowl was never conscious either.

Prompts And Incantations

An incantation is a verbal formula that works for reasons the speaker cannot see. By that definition, the early years of image generation were full of them. People found that adding "trending on ArtStation" or the name of a game engine to a prompt made pictures sharper, and they passed the phrases around like charms. Language models had their own. In 2022 researchers showed that adding one sentence, "Let's think step by step," made a model measurably better at arithmetic word problems.

None of this is mystical. The phrases work because of what they sat beside in the training data. Polished pictures carried polished captions, and careful reasoning often followed those five words. It is sympathetic magick with a statistical mechanism.

Two lessons follow. First, a charm can be tested, so test it. Run the prompt with the phrase and without it, on the same seed, and compare. Second, charms expire. A formula tuned to one model is superstition on the next, and the forums are full of phrases that stopped working two versions ago. The negative prompt, a list of what must not appear, is the one piece of prompt craft with a clear ritual ancestor. It is a banishing.

Keep a log. Folklore is what you get when nobody does.

A Scrying Session

If you want to scry the latent space, treat it as you would any oracle. Gods From The Machine explains why a machine that talks back needs firmer rules than one that only shows pictures.

  1. Write the question first. By hand, in one sentence. Decide now what will count as the answer: the first image, the strongest of four, a single paragraph.
  2. Choose the model and know where it runs. A model on your own machine keeps the question private. A hosted one keeps a copy.
  3. Fix the seed. Choose it deliberately: a date, a number drawn by lot, a count of breaths. Write it down. A recorded seed makes the session repeatable.
  4. Keep the prompt plain. State the question or its central image. Do not steer toward the answer you want.
  5. Draw a small batch and stop. Four images, or one response. Generating until something pleases you is not scrying. It is shopping.
  6. Read symbols, not facts. Ask what the image stirs, what it resembles and what it leaves out. Never take a name, a date, a quotation or advice about health, law or money from it.
  7. Record it. The question, model, seed, prompt, output and your first reading go in The Digital Grimoire. Set a date to review them.
  8. Count the cost and credit the hands. Every image spends electricity and water, and every one is built from other people's work. The Earth Under The Cloud does the counting. Use the tool on purpose or not at all.

The seer at the bowl knew the water was only water. Knowing it never spoiled the sight. It kept the seer honest about where the vision came from. The latent space is a deep bowl, filled by everyone who ever posted anything.

Look into it. Remember whose reflections those are.

Sources

  • J. R. Firth, "A Synopsis of Linguistic Theory, 1930-1955" (1957)
  • Félix Guattari, L'inconscient machinique (1979)
  • Tomas Mikolov et al., "Efficient Estimation of Word Representations in Vector Space" (2013)
  • Emily M. Bender, Timnit Gebru et al., "On the Dangers of Stochastic Parrots: Can Language Models Be Too Big?" (2021)
  • Robin Rombach et al., "High-Resolution Image Synthesis with Latent Diffusion Models" (2022)
  • Takeshi Kojima et al., "Large Language Models are Zero-Shot Reasoners" (2022)
  • Supercomposite, account of Loab posted to Twitter (2022)
  • Ted Chiang, "ChatGPT Is a Blurry JPEG of the Web," The New Yorker (2023)