Reproduce “The magnitude of categories of texts enriched by language models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Tai-Danae Bradley, Juan Pablo Vigneaux
A framework is developed that explicitly defines a category of natural language texts from autoregressive language models, using their next-token probabilities as enrichment values that cohere into probability mass functions for model outputs. This work then quantifies the "magnitude" of the derived generalized metric space of texts, expressing this geometric invariant in terms of t-logarithmic (Tsallis) entropies and connecting it to magnitude homology.
Key insights
- Autoregressive language models explicitly define a probabilistically coherent `[0,1]`-enriched category of texts, where the enrichment values `π(y|x)` form a valid probability mass function over the model's possible outputs for a given prompt.
- The 'magnitude' of the generalized metric space induced by an LM provides a quantifiable measure of the model's linguistic complexity, directly proportional to the sum of t-logarithmic entropies across intermediate text states.
- The derivative of this magnitude function with respect to the parameter `t` at `t=1` recovers the sum of Shannon entropies, establishing a fundamental link between this geometric invariant and information-theoretic measures of uncertainty in LMs.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.