It’s a fascinating question, and it touches on deep properties of high-dimensional geometry. In short: as far as is publicly known, nobody has computed an exact “fraction of volume” for GPT-4’s token embeddings—partly because the concept doesn’t translate well to high-dimensional spaces, and partly because any finite set of points (words/tokens) in a high-dimensional space will occupy an essentially negligible fraction of the total volume. Below is some intuition on why that is.
- The geometry of high-dimensional embeddings
Dimensions are high.GPT-like language models often use hundreds or even thousands of dimensions for their token embeddings (e.g., GPT-3 uses 12,288 in some layers, though embeddings for tokens may be at smaller dimensionalities—OpenAI has not disclosed GPT-4’s exact numbers). Regardless of whether it’s 768, 1,024, or more, once you pass even a few dozen dimensions, geometric “volume” behaves in unintuitive ways.
Convex hull of discrete points.Each token—be it a word, sub-word, or a special symbol—is associated with one embedding vector. If you take all these discrete embedding vectors and form their convex hull, you’ll get a high-dimensional polytope that in principle spans some region of the space. Yet no matter how large the token vocabulary is, the total set of token embeddings is still finite—and a finite set of points in a high-dimensional real vector space generally fills an extremely small region.
Measure in high-dimensional spaces.In high dimensions, most of the “volume” is found toward the outer edges (this is sometimes called the “curse of dimensionality” or “concentration of measure”). Intuitively, if you pick a random point in a high-dimensional sphere, it’s very likely to lie near the surface rather than near the center. Thus, any finite convex hull, even if it encloses thousands or millions of token points, typically occupies a negligible fraction of the entire space.
Dimensions are high.GPT-like language models often use hundreds or even thousands of dimensions for their token embeddings (e.g., GPT-3 uses 12,288 in some layers, though embeddings for tokens may be at smaller dimensionalities—OpenAI has not disclosed GPT-4’s exact numbers). Regardless of whether it’s 768, 1,024, or more, once you pass even a few dozen dimensions, geometric “volume” behaves in unintuitive ways.
Convex hull of discrete points.Each token—be it a word, sub-word, or a special symbol—is associated with one embedding vector. If you take all these discrete embedding vectors and form their convex hull, you’ll get a high-dimensional polytope that in principle spans some region of the space. Yet no matter how large the token vocabulary is, the total set of token embeddings is still finite—and a finite set of points in a high-dimensional real vector space generally fills an extremely small region.
Measure in high-dimensional spaces.In high dimensions, most of the “volume” is found toward the outer edges (this is sometimes called the “curse of dimensionality” or “concentration of measure”). Intuitively, if you pick a random point in a high-dimensional sphere, it’s very likely to lie near the surface rather than near the center. Thus, any finite convex hull, even if it encloses thousands or millions of token points, typically occupies a negligible fraction of the entire space.
- Why the fraction of total volume is (effectively) negligible
Even if someone did attempt to compute the fraction of volume occupied by the convex hull of, say, 50,000–100,000 token embeddings in a 1,024-dimensional space:
Absolute vs. relative volume.The “size” of that convex hull compared to the overall 1,024-dimensional space is so small that for practical purposes, it’s close to zero.
Exponential growth of volume.The volume of a hypersphere (or hypercube) grows or shrinks exponentially with dimension, so any fixed-size arrangement of points occupies a vanishingly small fraction in higher dimensions.
Absolute vs. relative volume.The “size” of that convex hull compared to the overall 1,024-dimensional space is so small that for practical purposes, it’s close to zero.
Exponential growth of volume.The volume of a hypersphere (or hypercube) grows or shrinks exponentially with dimension, so any fixed-size arrangement of points occupies a vanishingly small fraction in higher dimensions.
In other words, while the convex hull might look “large” locally if you zoom in around the existing embeddings, as soon as you consider the entire 1,024-dimensional space, that hull becomes infinitesimally small in proportion to the whole.
- “Outside” language: where no token is close
Your question about “how much space is outside language implying there is no nearby word for that point” is precisely what happens when you realize that any finite subset of a high-dimensional space will be sparse. If we pick a random point in a 1,024-dimensional space, the odds that it is near any of the token embedding vectors (or inside the polytope spanned by them) is effectively zero. Almost all of the embedding space lies “outside” the region where the tokens actually live.
- Is there any direct empirical or published measure?
Publicly, no direct measure: There is no widely cited, rigorous calculation of the exact convex hull volume fraction for GPT-4 (or GPT-3 or BERT, etc.). Part of the reason is that it’s not a terribly practical statistic for most ML research problems. Another part is that it’s simply unwieldy to measure volume in 1,024+ dimensions.
Approximate geometric arguments: What researchers sometimes do is reason qualitatively about how vectors are distributed (e.g. checking norms, pairwise distances, or principal components) or investigate “cluster tightness” to see how tokens group semantically. But these studies confirm the same big picture: the actual region that token embeddings occupy is a tiny corner of the space.
Publicly, no direct measure: There is no widely cited, rigorous calculation of the exact convex hull volume fraction for GPT-4 (or GPT-3 or BERT, etc.). Part of the reason is that it’s not a terribly practical statistic for most ML research problems. Another part is that it’s simply unwieldy to measure volume in 1,024+ dimensions.
Approximate geometric arguments: What researchers sometimes do is reason qualitatively about how vectors are distributed (e.g. checking norms, pairwise distances, or principal components) or investigate “cluster tightness” to see how tokens group semantically. But these studies confirm the same big picture: the actual region that token embeddings occupy is a tiny corner of the space.
- Takeaways
Vanishing fraction of volume: In high-dimensional spaces, a finite set of points (and even their convex hull) occupies a negligible fraction of the total volume.
Intuitive consequence: Almost all points in that high-dimensional embedding space do not correspond to any particular token or linear combination of tokens.
No standard measure: Researchers do not generally track the “hull volume fraction,” and to the best of public knowledge, there’s no official estimate for GPT-4 or similar models.
Practical focus: Instead, work typically focuses on distances, clustering, or manifold-based views of embeddings (e.g., are embeddings on a low-dimensional manifold, how do distances correlate with meaning, etc.).
Vanishing fraction of volume: In high-dimensional spaces, a finite set of points (and even their convex hull) occupies a negligible fraction of the total volume.
Intuitive consequence: Almost all points in that high-dimensional embedding space do not correspond to any particular token or linear combination of tokens.
No standard measure: Researchers do not generally track the “hull volume fraction,” and to the best of public knowledge, there’s no official estimate for GPT-4 or similar models.
Practical focus: Instead, work typically focuses on distances, clustering, or manifold-based views of embeddings (e.g., are embeddings on a low-dimensional manifold, how do distances correlate with meaning, etc.).
In sum, if you tried to label each point in GPT-4’s embedding space with “this is inside the language hull” vs. “this is outside,” you’d find that (1) the hull is extremely tiny relative to the full space, and (2) nearly every point you pick at random will be “outside” the convex hull of language. This is simply a reflection of how geometry in high dimensions behaves, and it applies not just to GPT-4’s embeddings but to almost any high-dimensional embedding scheme.