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. 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.
Less is Enough: Synthesizing Diverse Data in LLM Feature Space with Sparse Autoencoders
Department of Computing, University of Georgia, Georgia, United States(佐治亚大学计算机系);Computer Engineering, University of California San Diego, California, United States(加州大学圣地亚哥分校计算机工程系);Machine Learning Department, Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, United Arab Emirates(Mohamed bin Zayed人工智能大学机器学习系);Department of Computing, Hong Kong Polytechnic University, Hong Kong, China(香港理工大学计算机系)
Interpretable Sentence Representation with Variational Autoencoders and Attention
Université Sorbonne Paris-Nord(索邦巴黎北大学);Laboratoire d’Informatique de Paris-Nord(巴黎北信息学实验室);Sorbonne Paris Cité(巴黎索邦西岱大学);Université Paris Sorbonne(巴黎索邦大学);Université Paris-Saclay(巴黎萨克雷大学);Sorbonne Université(索邦大学);Université Grenoble Alpes(格勒诺布尔阿尔卑斯大学)