Visualizing GPT-2 Vocabulary in a Hyperbolic Ball
Limp-Contest-7309 · reddit · 2026-07-19
This is a visualization project that places the **32,070 token embeddings of GPT-2-small** into hyperbolic space (Poincaré ball). It requires no training, purely using the raw token embeddings for geometric layout. The author explains that the similarity structure of a vocabulary resembles a forest rather than a flat graph. Hyperbolic space is naturally better at accommodating such tree-like structures because the space expands exponentially with distance. The web app is mobile-friendly, allowing users to drag, rotate, zoom, search for tokens, and explore along proximity lines. The post also shares some interesting observations: - The dense inner layers are mostly isolated tokens that lack "mutual nearest neighbors." - You can search for "dog" and follow the connections to find "cats," or walk through the days of the week starting from "Monday." - In this structure, "Trump" is solely connected to "Ivanka." The entire project consists of a single HTML file and runs entirely on the client side.
Related event: Interactive Tool Visualizes GPT-2 Token Embeddings(4 posts)→
More from Research
- Packing dataset files into sequential blobs lifted one training pipeline from 36 to 47 steps per minute — irinarish · 2026-07-21
- UIUC proposes AgentPrimitives, a reusable latent-building-block framework for multi-agent systems — 机器之心 · 2026-07-21
- A C++20 CPU-native strict-W1 Transformer training runtime seeks feedback — Wonderful-Income7415 · 2026-07-21
- Microsoft proposes training agent skills like neural networks, with validation gates and no weight updates — Saboo_Shubham_ · 2026-07-21
- AI should be a research amplifier, not a reason to give up, says researcher — omarsar0 · 2026-07-21
- Hessian matrix primer links second derivatives to neural-network optimization — burny_tech · 2026-07-21