Abstract
In fields such as sociology, economics, and medicine, researchers seek to identify specific features of text that predict real-world outcomes. However, existing methods often struggle with the scalability of Large Language Models (LLMs) or the uninterpretable nature of high-dimensional embeddings. We introduce HYPOTHESAES, a framework that utilizes Sparse Autoencoders (SAEs) to extract monosemantic, human-interpretable features from text embeddings. By decoupling feature discovery from prediction, HYPOTHESAES identifies twice as many significant hypotheses as current LLM-based baselines while being 10–50x more cost-effective. Our results across diverse datasets—ranging from Congressional speeches to viral headlines—demonstrate that SAEs provide a robust pathway for automated scientific discovery.
Introduction
Scientific discovery in the social and medical sciences often hinges on the question: What specific characteristics of this text predict a certain outcome? Whether identifying the rhetorical strategies that drive political polarization or the linguistic markers of patient recovery in clinical notes, the goal is to move beyond mere prediction toward understanding.
While modern LLMs excel at reasoning, they face significant hurdles in this context. First, scalability remains a bottleneck; processing millions of documents within an LLM’s context window is computationally prohibitive. Second, interpretability is hampered by the "black box" nature of embeddings. Standard model neurons are typically polysemantic—firing for multiple unrelated concepts—making it nearly impossible for researchers to isolate the specific driver of a prediction.
The HYPOTHESAES Framework
To address these challenges, we propose HYPOTHESAES, a three-step pipeline designed to transform dense embeddings into actionable scientific hypotheses.
1. Feature Generation via SAEs
The core of the framework involves training a Sparse Autoencoder (SAE) on text embeddings. The SAE decomposes dense, polysemantic embeddings into a high-dimensional but "sparse" set of features (latents). The sparsity constraint forces each latent to represent a single, clean concept—a property known as monosemanticity. This ensures that the features discovered are inherently more interpretable than raw embedding dimensions.
2. Feature Selection
Once the features are generated, we identify which ones are statistically relevant to the target variable (e.g., click-through rates or political party). We employ a simple linear model, such as Lasso, to select the sparse features that most accurately predict the outcome. This step effectively filters the thousands of discovered concepts down to those with the highest explanatory power.
3. Feature Interpretation
Finally, the top predictive features are labeled using an LLM. By providing the LLM with examples of text where a specific feature fired strongly versus weakly, the model generates a natural language description (e.g., "criticizing corporate tax loopholes").
Crucially, we provide a theoretical "triangle inequality" proof: if a neuron is predictive and a high-fidelity interpretation can be found for it, then that interpretation is mathematically guaranteed to be a predictive hypothesis.
Experimental Design
We evaluated HYPOTHESAES across both controlled synthetic benchmarks and complex real-world datasets:
- Synthetic Benchmarks: WIKI (Wikipedia categories) and BILLS (US Congressional bill topics), where ground-truth labels are known.
- Real-World Discovery:
- HEADLINES: 122,000 Upworthy headlines used to predict click-through rates.
- YELP: 200,000 restaurant reviews used to predict star ratings.
- CONGRESS: 114,000 US Congressional speech segments used to predict party affiliation.
Key Results
Superior Hypothesis Yield and Fidelity
HYPOTHESAES significantly outperformed existing baselines in identifying valid hypotheses. In real-world tasks, the framework identified 45 out of 60 significant hypotheses, whereas the best-performing baseline identified a maximum of 24. Furthermore, SAE-based interpretations achieved a high fidelity score (F1 of 0.84), vastly outperforming traditional dimensionality reduction techniques like PCA.
Computational Efficiency
By decoupling the unsupervised discovery of concepts from the supervised labeling process, HYPOTHESAES is 10–50x cheaper and faster than state-of-the-art LLM discovery methods like NLPARAM. The LLM is only utilized at the final stage to label a small subset of predictive features, rather than processing the entire corpus.
Predictive and Qualitative Value
In the Upworthy headline task, incorporating the 15 hypotheses discovered by our model increased the predictive AUC from 0.59 to 0.70, surpassing the results of prior manual marketing studies. Qualitatively, computational social scientists rated the generated hypotheses as more helpful and interpretable than those from baseline models. Notably, the model captured nuanced rhetorical strategies—such as specific types of political criticism—rather than simple keyword correlations.
Limitations and Future Directions
While promising, the framework's efficacy is inherently tied to the quality of the underlying text embeddings. If an embedding model fails to capture a specific nuance, the SAE cannot extract it as a feature. Additionally, the "dead latent" problem—where some features never activate during training—remains a challenge, though auxiliary losses can mitigate this.
Future work will explore extending this framework to non-textual domains, such as medical imaging and protein sequences, where the discovery of interpretable, predictive features remains a critical frontier in scientific research.
Summary updated