In a November 13 preprint, researchers examined how text generated by six open language models relates to their input embeddings. They built a graph of vocabulary similarity and asked where generated tokens land as the models produce text.
How the researchers mapped the vocabulary
The study uses the models’ input embeddings as the starting point. These vectors provide a way to compare vocabulary items. The researchers translate those similarities into a graph and place each generated token on the corresponding node. This gives them a common representation for inspecting the vocabulary and the sequence of tokens that a model actually produces.
The authors compare these graphs with graphs built from random embeddings with matched covariance. They report that the model graphs are more fragmented. They also report little change in the graph topology after distillation in the cases they examine, which they connect to inherited input embeddings.
What generation looks like on that map
Consecutive output tokens rarely occupy neighboring nodes. For most models, neighbors were no more common in generated order than in a shuffled sequence. Even so, the tokens that appear in an output concentrate in parts of the graph. The distinction matters because an output can draw repeatedly from a region of the vocabulary without moving from node to adjacent node on each step.
Where the method could help
The paper also follows token predictions through the layers using a logit lens. The authors report that predictions settle late in depth for most of the models. When models repeat themselves, the resulting tokens remain in relatively small, domain-specific subgraphs.
The authors propose these patterns as possible signals to monitor during inference. Their evidence describes the examined models and how their generations appear in this representation. It gives researchers specific measurements to try when investigating repetitive output.
Comments