Text embeddings preserve topic-model geometry and can serve as faithful low-dimensional proxies for topical document structure; applied to 363 U.S. metropolitan-area LLM narratives, embedding-based clusters recover intuitive economic archetypes and better distinguish local employment dynamics than clusters based on residuals or standard covariates.
Citation observations
Cumulative provider counts captured on specific dates; providers are never combined.
No provider observation is available for this paper.
Missing data, not a zero citation count.
When do text embeddings work as inputs to empirical analysis? Their use rests on an assumption: that we can trade text for its low-dimensional embedding, and lose little in doing so. I make that assumption precise under a generative model in which documents are mixtures of latent topics. I study two uses---clustering units in embedding space and controlling for high-dimensional text. A cluster of embeddings is a set of documents with similar topic mixtures; controlling for the embedding is equivalent to controlling for the topic mixture, so validity reduces to whether that mixture captures the confounding. In an application to 363 U.S. metropolitan areas, embedding-based clusters of LLM-generated economic descriptions recover interpretable economic archetypes and separate local employment dynamics more sharply than clustering on model residuals, or on a curated set of industry and demographic covariates.
Summary
Main Finding
Under a standard topic-mixture generative model (documents = mixtures of K latent topics), common unsupervised text embeddings preserve a low-dimensional “topic-loading geometry.” Concretely: - The centered word co-occurrence ratio R − 1V1⊤V is positive semi-definite of exact rank K − 1, and factorizes as ˜B ΣΘ ˜B⊤ (Proposition 1). - Any embedding that reproduces this factorization (or its low-rank approximation) recovers distances between words induced by their marginal-normalized topic loadings — words with proportional topic loadings receive identical embeddings (Theorem 1). - Word2Vec/SGNS recovers the same geometry up to a bounded distortion when its implicit target is close to log R, while full-softmax and GloVe introduce row/column offsets that can distort one marginal direction (Proposition 2; Table 1). - At the document level, averaging word embeddings gives an invertible linear image of the topic mixture (Proposition 3), so clustering or conditioning on the embedding is effectively clustering or conditioning on the topic mixture.
Key Points
- Generative setup: vocabulary V, D documents, Π = BΘ where B (V×K) are word-topic loadings and Θ (K×D) are topic mixtures. Topic-mixture covariance ΣΘ has rank ≤ K − 1; under regularity it is rank K − 1.
- Centered probability-ratio matrix: R := D−1q M D−1q with M the aggregate word–context co-occurrence. Then R − 1V1⊤V = ˜B ΣΘ ˜B⊤ has rank exactly K − 1.
- Embedding geometry: any r ≥ K − 1 embedding that matches the rank-(K − 1) factorization inherits the ΣΘ-weighted distance between marginal-normalized topic loadings: ∥β_v − β_u∥^2 = (˜B_v• − ˜B_u•)⊤ ΣΘ (˜B_v• − ˜B_u•).
- Practical algorithms: SGNS (Word2Vec with negative sampling) targets log R up to a column shift and so reproduces the topic-loading geometry up to multiplicative distortion depending on spectrum and conditioning. Full softmax and GloVe introduce additional per-row offsets that can change one marginal direction; the algorithmic target matters.
- Uses examined:
- Clustering: cluster centroids correspond to well-defined topic mixtures (Corollary 1); when documents concentrate around a small set of mixture-types, k-means has those groups as fixed points (Proposition 4), though separability alone does not guarantee global optimality.
- Controls in regression: conditioning on the embedding = conditioning on the topic mixture, so the usual “embedding suffices as a control” assumption reduces to the transparent requirement that the topic mixture captures confounding (Corollary 2).
- Assumptions to watch: full-column rank B, rank K − 1 for ΣΘ, positive marginal word probabilities, and (for log-target arguments) positive co-occurrence Rvu > 0.
Data & Methods (theoretical + empirical)
- Theory: analytic derivations under a multinomial per-document model Π = BΘ (LDA/NMF style), with careful linear-algebra decomposition of co-occurrence and ratio matrices. Main tools: eigen/singular-value decompositions, low-rank factorization arguments, and characterizations of algorithmic targets for common embeddings (SGNS, full-softmax skip-gram, GloVe).
- Key mathematical results: Proposition 1 (rank K − 1 PSD factorization of centered ratio), Lemma 1 (explicit topic-primitive factor β), Theorem 1 (invariance of topic-loading geometry), Proposition 2 (distortion bounds for SGNS), Proposition 3 (document averaging → invertible linear map of topic mixture), Proposition 4 and Corollaries on clustering and controls.
- Empirical illustration:
- Units: 363 U.S. Core-Based Statistical Areas (CBSAs).
- Text: generate a 500-word economic narrative per CBSA using a large language model.
- Embedding: embed narratives in R^r (paper sets r = 50).
- Clustering: apply k-means in embedding space.
- Comparison: evaluate peer groups’ interpretability and ability to separate local employment dynamics relative to clustering on model residuals and clustering on curated industry/demographic covariates.
- Result: embedding-based clusters recover interpretable economic archetypes (e.g., deindustrialized “Eds-and-Meds”, Sunbelt growth, energy/resource extraction) and separate local employment dynamics more sharply than the alternatives.
Implications for AI Economics
- Clarifies when embeddings are a valid low-dimensional representation: validity hinges on the corpus being well-approximated by a topic-mixture model and on topics capturing the analytic object of interest (e.g., confounders). This makes the usual “embedding suffices as a control” assumption testable/transparent.
- Guidance for empirical practice:
- Use sufficiently large embedding dimension r ≥ K − 1 (paper uses r = 50 when K unknown).
- Inspect the spectrum of the centered probability-ratio or log-R target to assess approximate low-rankness and how binding the rank constraint is.
- Be cautious with embedding algorithms that introduce per-row/per-column offsets (full-softmax, GloVe), since they can distort one marginal direction; SGNS recovers geometry up to a bounded distortion under mild conditions.
- When clustering units using embeddings (to pool information, form peer groups, or model heterogeneous dynamics), the resulting clusters correspond to concrete topic mixtures — hence interpretable and potentially causally meaningful if topics align with confounders.
- For causal and structural work: reducing text to embeddings is defensible when the topic mixture subsumes confounding variables of concern. If it does not, conditioning on embeddings may not remove bias; the paper reframes the implicit assumption in clear primitives (B, Θ, ΣΘ).
- Using LLMs: LLM-generated narratives can be a practical way to create consistent, comparable corpora for cross-sectional units (e.g., cities) before embedding and clustering — but the theoretical guarantees require that the generated text still reflect latent topics in the way assumed.
- Limitations and diagnostics: the core results rest on the topic-mixture generative model and on co-occurrence structure; researchers should run diagnostics (rank/spectrum checks, sensitivity to embedding dimension and algorithm) and be wary when co-occurrence is sparse or when topics are not the right latent object for the researcher’s identification strategy.
If you want, I can: - Extract the main propositions/equations into a one-page reference sheet. - Suggest practical diagnostics and code snippets to check the rank/spectrum and test sufficiency of embeddings as controls in a regression.
Assessment
Claims (9)
| Claim | Direction | Outcome | Confidence & Evidence | Details |
|---|---|---|---|---|
| Under the paper's latent-topic generative model and regularity assumptions, the centered word co-occurrence probability-ratio matrix is positive semidefinite and has rank exactly K−1. Other | positive | Rank and positive-semidefinite structure of the centered word co-occurrence matrix |
Reading fidelity
high
Study strength
high
|
rank K−1
|
| An embedding that exactly matches the centered probability-ratio factorization preserves the covariance-weighted geometry of marginal-normalized topic loadings. Other | positive | Pairwise distances between word embeddings relative to topic-loading distances |
Reading fidelity
high
Study strength
high
|
exact equality of squared distances
|
| Words with proportional topic loadings receive identical embeddings under an embedding that matches the centered probability-ratio factorization. Other | positive | Equality of embeddings for words with proportional topic loadings |
Reading fidelity
high
Study strength
high
|
zero embedding distance
|
| At the document level, averaging word embeddings yields an invertible linear transformation of the document's latent topic mixture. Other | positive | Recoverability of document topic mixtures from averaged word embeddings |
Reading fidelity
high
Study strength
medium
|
invertible linear image
|
| Clustering documents in embedding space groups documents with similar latent topic mixtures, and cluster centroids correspond to well-defined topic mixtures. Task Allocation | positive | Similarity of topic mixtures within embedding-based clusters |
Reading fidelity
high
Study strength
medium
|
not reported
|
| When documents concentrate tightly around a small number of common mixture types, the latent partition is a fixed point of k-means; however, separation alone does not guarantee that it is the unique optimum. Task Allocation | mixed | Recovery and uniqueness of latent document clusters under k-means |
Reading fidelity
high
Study strength
medium
|
not reported
|
| Controlling for a document embedding is equivalent to controlling for its latent topic mixture, so the validity of the embedding as a control depends on whether the topic mixture captures the confounding. Decision Quality | positive | Validity of text embeddings as regression controls for confounding |
Reading fidelity
high
Study strength
medium
|
not reported
|
| Under the paper's assumptions, embeddings attaining the SGNS target preserve topic-loading geometry up to a bounded distortion, and words with proportional topic loadings receive identical embeddings. Other | positive | Distortion between SGNS embedding distances and topic-loading distances |
Reading fidelity
high
Study strength
medium
|
distortion bounded by κR cond(β) cond(ˆ˜W)
|
| In an application using 363 U.S. metropolitan areas, clusters formed from LLM-generated economic descriptions recover interpretable economic archetypes and separate local employment dynamics more sharply than clustering on model residuals or on curated industry and demographic covariates. Employment | positive | Interpretability of metropolitan-area clusters and separation of local employment dynamics |
Reading fidelity
high
Study strength
medium
|
n=363
|