Is All the Information in the Price? LLM Embeddings versus the EMH in Stock Clustering

Bingyang Wang, G. Allan Johnson, Maria Hybinette, Tucker Balch · DOI

Abstract

This paper investigates whether artificial intelligence can enhance stock clustering compared to traditional methods. We consider this in the context of the semi-strong Efficient Markets Hypothesis (EMH), which posits that prices fully reflect all public information and, accordingly, that clusters based on price information cannot be improved upon. We benchmark three clustering approaches: (i) price-based clusters derived from historical return correlations, (ii) human-informed clusters defined by the Global Industry Classification Standard (GICS), and (iii) AI-driven clusters constructed from large language model (LLM) embeddings of stock-related news headlines. Using S&P 500 constituents from 2022 through 2024, we find that price-based clustering consistently outperforms both rule-based and AI-based methods, reducing root mean squared error (RMSE) by 15.9% relative to GICS and 14.7% relative to LLM embeddings. These results support the EMH while offering practitioners a practical diagnostic for monitoring evolving sector structures.

Introduction

Grouping stocks into "sectors" or "clusters" is a fundamental practice in quantitative finance for risk management, diversification, and trend analysis. Traditionally, this is done via human insight (like the 11 GICS sectors) or by mathematically grouping stocks that historically move together (price correlation).

With the explosion of Large Language Models (LLMs), a natural question arises: Can we group stocks more effectively by analyzing the semantic meaning of their corporate news and press releases? Furthermore, this acts as a modern test of the semi-strong Efficient Markets Hypothesis (EMH), which argues that asset prices reflect all publicly available information. If the EMH holds, sophisticated AI analyzing public news shouldn't be able to generate better short-term predictive clusters than the price data itself.

Methodology

The authors compare four different stock similarity measures:

  1. Historical Returns (Price-based): Pairwise correlations of daily stock returns over rolling windows.
  2. Human Insight (GICS): The industry-standard Global Industry Classification Standard.
  3. LLM Embeddings (AI-driven): Weekly corporate press release headlines are concatenated and processed through OpenAI’s text-embedding-3-large model. Stock similarity is measured via the cosine similarity of these high-dimensional semantic vectors.
  4. Random Baseline: Stocks are arbitrarily assigned to clusters.

For the numerical and AI methods, the authors apply k-means and hierarchical clustering algorithms, forcing the output to $k=11$ clusters to allow a direct comparison with the 11 GICS sectors.

The Evaluation Innovation

To objectively test which clustering is "best," the authors introduce a novel pipeline inspired by Arbitrage Pricing Theory (APT). They convert each clustering into a synthetic factor model. Every week, they calculate the equal-weighted return of each cluster. They then use these cluster returns as factors in a linear regression to predict individual stock returns out-of-sample for the following week, measuring the Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE).

Datasets

  • Universe: Point-in-time S&P 500 constituents.
  • Timeframe: January 2022 to December 2024.
  • Pricing & GICS Data: Compustat North America Daily Updates, accessed via Wharton Research Data Services (WRDS).
  • News Data: RavenPack news analytics (filtered for maximum relevance, stripped of noise, and deduplicated).

Key Insights

  • The EMH holds up to AI: While sophisticated NLP can extract deep semantic relationships from text, this "economic similarity" does not translate into superior predictive factors for short-term risk modeling. The market has already priced the news in.
  • A reusable evaluation framework: The authors provide a generalizable pipeline that can take any arbitrary grouping of equities—whether generated by a human, a machine, or market data—and convert it into a real-time, tradable factor model to test its predictive validity.
  • Dynamic beats static: Dynamic correlation groupings capture the evolving cross-sectional structure of systematic risk much better than static human definitions (GICS).

Key Results

Price-based clustering dominates the competition. Methods relying on historical returns consistently outperformed all LLM-based methods, which in turn slightly outperformed GICS.

Comparative performance of clustering methods by RMSE and MAE.

The best price-based method (returns_hierarchical_12w) achieved an RMSE of 1.963. This represents a 15.9% reduction in RMSE relative to GICS (2.333) and a 14.7% reduction relative to the best LLM embedding method (2.301). The performance gap between the best returns-based clustering and the best LLM-based clustering is statistically significant ($p \approx 0$).

Limitations and Future Work

The evaluation is limited to a roughly 3-year period (Jan 2022 – Dec 2024) to ensure the OpenAI embedding model (with a September 2021 knowledge cutoff) was not training on future data. Additionally, the study only looks at large-cap U.S. equities (the S&P 500) and uses a fixed cluster count of $K=11$ to match GICS.

For future work, the authors suggest practitioners can deploy this framework as a real-time diagnostic tool to monitor how sector structures are evolving. Academics can use the pipeline to test alternative hypotheses about exactly what information markets price in, and how quickly they do it.

Summary updated

BibTeX
@inproceedings{wang2025is,
  author = {Bingyang Wang and G. Allan Johnson and Maria Hybinette and Tucker Balch},
  title = {{Is All the Information in the Price? LLM Embeddings versus the EMH in Stock Clustering}},
  booktitle = {GenAI in Finance @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=5gfbGArnxm},
}
Figure