Skip to main content
QUICK REVIEW

[Paper Review] Company Similarity using Large Language Models

Dimitrios Vamvourellis, Máté Attila Tóth|arXiv (Cornell University)|Aug 15, 2023
Stock Market Forecasting MethodsDecision Sciences3 citations
TL;DR

This paper proposes using large language models (LLMs) fine-tuned on SEC 10K filings to generate dense, continuous company embeddings that capture business similarity beyond rigid industry classifications. It demonstrates that these embeddings outperform traditional GICS classifications by enabling more accurate peer group identification, with 10% higher return correlation for nearest neighbors and improved explanation of cross-sectional return variation.

ABSTRACT

Identifying companies with similar profiles is a core task in finance with a wide range of applications in portfolio construction, asset pricing and risk attribution. When a rigorous definition of similarity is lacking, financial analysts usually resort to 'traditional' industry classifications such as Global Industry Classification System (GICS) which assign a unique category to each company at different levels of granularity. Due to their discrete nature, though, GICS classifications do not allow for ranking companies in terms of similarity. In this paper, we explore the ability of pre-trained and finetuned large language models (LLMs) to learn company embeddings based on the business descriptions reported in SEC filings. We show that we can reproduce GICS classifications using the embeddings as features. We also benchmark these embeddings on various machine learning and financial metrics and conclude that the companies that are similar according to the embeddings are also similar in terms of financial performance metrics including return correlation.

Motivation & Objective

  • To develop a continuous, interpretable measure of company similarity that overcomes the limitations of discrete industry classifications like GICS.
  • To evaluate whether LLM-generated embeddings from business descriptions can reproduce or improve upon traditional sector and industry classifications.
  • To assess the financial relevance of these embeddings by linking them to actual stock return correlations and risk factor exposure.
  • To explore the potential of embeddings for identifying financial outliers and enabling similarity learning in private markets.

Proposed method

  • Fine-tune large language models (e.g., GPT-based and SBERT) on SEC 10K business descriptions with corresponding GICS labels to generate company embeddings.
  • Use the resulting embeddings as input features to train a classifier that reproduces GICS sector and industry classifications with high accuracy.
  • Compute pairwise cosine similarity between company embeddings to identify nearest peers and form clusters of similar firms.
  • Benchmark the financial relevance of embeddings by measuring return correlation between nearest neighbors and across clusters compared to GICS-defined peers.
  • Apply dimensionality reduction (UMAP) to visualize embeddings and detect outliers that deviate from their GICS-assigned sector.
  • Compare the ability of embeddings and GICS classifications to explain cross-sectional equity return variation using risk factor models.

Experimental results

Research questions

  • RQ1Can LLM-generated embeddings from 10K filings reproduce GICS industry classifications with high accuracy?
  • RQ2How does the similarity of companies measured via embeddings compare to traditional GICS-based peer groups in terms of return correlation?
  • RQ3Can embeddings identify more financially meaningful peer groups than GICS, especially in terms of return co-movement and risk factor exposure?
  • RQ4Do embeddings reveal structural misclassifications in GICS, such as companies that are textually similar but assigned to different sectors?
  • RQ5Can embeddings be used to detect financial outliers or support similarity learning in private markets?

Key findings

  • Fine-tuned LLMs achieve higher accuracy in reproducing GICS sector and industry classifications than general pre-trained LLMs, demonstrating the value of supervised adaptation.
  • The nearest peer identified via embeddings exhibits 10% higher return correlation than the average peer within the same GICS sector.
  • The nearest peer identified via embeddings shows 6% higher return correlation than the average peer within the same GICS industry.
  • Embedding-based clusters explain a larger percentage of cross-sectional equity return variation than GICS sector or industry classifications.
  • Outlier detection via embeddings reveals companies misclassified by GICS—such as MASS and VREX—whose textual profiles align more closely with different sectors.
  • The model generates soft, probabilistic sector assignments (e.g., Amazon has 35.7% probability in Consumer Discretionary), offering a more nuanced view than single-label classifications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.