Compressing Search with Language Models
Thomas Mulc, Jennifer L. Steele
TL;DR
The paper tackles exploiting vast search signals for real-world forecasting by introducing SLaM Compression, which converts large vocabularies of search terms into compact, semantics-preserving embeddings using pretrained language models, and CoSMo, a Constrained Search Model that predicts outcomes from these embeddings with region-aware structure. SLaM produces a fixed-length embedding per period via γ_t = ∑_{s∈S} v_{s,t} · LM(s) and normalized γ^*_t, enabling efficient aggregation and analysis without manual term filtering; CoSMo combines search volume, a probabilistic mapping P(γ^*, θ, r), and region multipliers to yield calibrated predictions. Empirical results on U.S. automobile sales and influenza-like illness demonstrate substantial gains over traditional Google Trends and linear baselines, with notable improvements in nowcasting accuracy and competitive performance relative to autoregressive methods, while maintaining interpretability at the term level. The work also highlights privacy-preserving aspects and the potential for zero-shot geo-transfer, supported by multilingual embeddings that enhance performance across languages. Overall, SLaM and CoSMo offer a scalable, interpretable, and privacy-conscious framework for transforming text-based search signals into actionable predictive power.
Abstract
Millions of people turn to Google Search each day for information on things as diverse as new cars or flu symptoms. The terms that they enter contain valuable information on their daily intent and activities, but the information in these search terms has been difficult to fully leverage. User-defined categorical filters have been the most common way to shrink the dimensionality of search data to a tractable size for analysis and modeling. In this paper we present a new approach to reducing the dimensionality of search data while retaining much of the information in the individual terms without user-defined rules. Our contributions are two-fold: 1) we introduce SLaM Compression, a way to quantify search terms using pre-trained language models and create a representation of search data that has low dimensionality, is memory efficient, and effectively acts as a summary of search, and 2) we present CoSMo, a Constrained Search Model for estimating real world events using only search data. We demonstrate the efficacy of our contributions by estimating with high accuracy U.S. automobile sales and U.S. flu rates using only Google Search data.
