When Can We Work in Embedding Space? What Text Embeddings Preserve
Simon Freyaldenhoven
Abstract
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.
Create a lesson
Related papers
Estimation risk in conditional expectiles
Marcelo Fernandes, Vitor Henriques, Eduardo Fonseca Mendes
Headline Estimation with Multiple Research Designs
Vod Vilfort
Robust Variance Estimation in Linear Regression: A Projection-Geometry Perspective
Yanping Chen
Which Policy Works, and Where? Estimation and Inference for State-Level Treatment Effects in Difference-in-Differences
Nichole Austin, Sunny R. Karim, Erin Strumpf et al.
Manipulation Testing in Boundary Discontinuity Designs
Federico A. Bugni, Federico Crippa, Daniel Restrepo
Moments of Random Coefficients in Short Panels
Irene Botosaru, James L. Powell