Interpretable Company Similarity with Sparse Autoencoders

Marco Molinari, Victor Shao, Luca Imeneo, Mateusz Mikolajczak, Vladimir Tregubiak +2 more
12/3/2024
3 citations
cs.CLcs.LGecon.GN

No official code found. Best implementation: Vxtr10/CompanySimSAE (0 stars, Python, MIT, last commit 2025-05-23).

Abstract

Determining company similarity is a vital task in finance, underpinning risk management, hedging, and portfolio diversification. Practitioners often rely on sector and industry classifications such as SIC and GICS codes to gauge similarity, the former being used by the U.S.

Show full abstract

Securities and Exchange Commission (SEC), and the latter widely used by the investment community. Since these classifications lack granularity and need regular updating, using clusters of embeddings of company descriptions has been proposed as a potential alternative, but the lack of interpretability in token embeddings poses a significant barrier to adoption in high-stakes contexts. Sparse Autoencoders (SAEs) have shown promise in enhancing the interpretability of Large Language Models (LLMs) by decomposing Large Language Model (LLM) activations into interpretable features. Moreover, SAEs capture an LLM's internal representation of a company description, as opposed to semantic similarity alone, as is the case with embeddings. We apply SAEs to company descriptions, and obtain meaningful clusters of equities. We benchmark SAE features against SIC-codes, Industry codes, and Embeddings. Our results demonstrate that SAE features surpass sector classifications and embeddings in capturing fundamental company characteristics. This is evidenced by their superior performance in correlating logged monthly returns - a proxy for similarity - and generating higher Sharpe ratios in co-integration trading strategies, which underscores deeper fundamental similarities among companies. Finally, we verify the interpretability of our clusters, and demonstrate that sparse features form simple and interpretable explanations for our clusters.

View on arXivView PDF

Code Implementations(1)

MIT

Repo for "Interpretable Company Similarity with Sparse Autoencoders" paper

00PythonMay 22, 20251 years agoMIT

Similar Papers

Cite this paper

@article{molinari2024interpretable,
  title  = {Interpretable Company Similarity with Sparse Autoencoders},
  author = {Marco Molinari and Victor Shao and Luca Imeneo and Mateusz Mikolajczak and Vladimir Tregubiak and Abhimanyu Pandey and Sebastian Kuznetsov Ryder Torres Pereira},
  year   = {2024},
  eprint = {2412.02605},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.02605v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.02605.svg)](https://codeofpaper.com/paper/2412.02605)

Discussion