CompanyKG: A Large-Scale Heterogeneous Graph for Company Similarity Quantification

Lele Cao, Vilhelm von Ehrenheim, Mark Granroth-Wilding, Richard Anselmo Stahl, Andrew McCornack, Armin Catovic, Dhiana Deva Cavalcanti Rocha

TL;DR

This paper introduces CompanyKG, a massive, real-world heterogeneous graph dataset containing 1.17 million companies and 51 million relationships, designed to quantify company similarity for investment purposes. They also release three benchmark tasks and extensive results for various methods, highlighting the challenges and opportunities in this domain.

What Problem Does This Paper Address?

In the investment world, understanding how companies are similar is crucial for tasks like market mapping, competitor analysis, and identifying potential mergers and acquisitions (M&A). This requires quantifying "company similarity" – a complex task that goes beyond simple textual descriptions. Existing methods often struggle to capture the rich, multi-faceted relationships between companies, especially at scale. The authors aim to address this by creating a comprehensive dataset and evaluation framework that can drive research in this area.

Methods

The core of the paper is the CompanyKG dataset, a heterogeneous graph where companies are nodes and relationships are edges.

  • Nodes: Represent companies and are enriched with embeddings derived from their textual descriptions using four different language models (mSBERT, ADA2, SimCSE, PAUSE).
  • Edges: Represent 15 distinct types of inter-company relationships (e.g., competitor landscape, industry sector, M&A transactions, people's affiliation, news engagement, product positioning). These edges are weighted to indicate the strength of the relationship.
  • Evaluation Tasks: To benchmark similarity quantification methods, they introduce three tasks:
  • Similarity Prediction (SP): A binary classification task to determine if two companies are similar or not.
  • Similarity Ranking (SR): Ranking candidate companies based on their similarity to a query company, crucial for M&A prioritization.
  • Competitor Retrieval (CR): Identifying direct competitors for a target company, essential for competitor analysis.
  • Baselines: They evaluate 11 methods across three categories:
  • Node-only: Relying solely on company description embeddings (e.g., embedding proximity, N-shot prompting with ChatGPT).
  • Edge-only: Utilizing graph structure heuristics (e.g., shortest path, weighted shortest path).
  • Node+Edge: Combining node features and graph structure using Graph Neural Networks (GNNs), including popular methods like GRACE, MVGRL, GraphSAGE, GraphMAE, and their novel eGraphMAE (which explicitly incorporates edge weights).

Datasets

  • CompanyKG: The primary contribution, a large-scale heterogeneous graph dataset of 1.17 million companies and 51 million weighted edges representing 15 relation types.
  • Evaluation Datasets: Three newly compiled datasets for SP (3,219 pairs), SR (1,856 ranking questions), and CR (76 target companies with ~5.3 competitors each). These are derived from real-world investment data and human annotations.

Key Insights and Ideas

  • Complementarity of Relations: The 15 different edge types, despite some overlap, are largely complementary, suggesting that a holistic view combining multiple relationship types is essential for accurate company similarity.
  • Edge Weights Matter: While node embeddings are powerful, incorporating edge weights (as in eGraphMAE) can provide a slight but meaningful improvement, indicating that the strength of relationships carries valuable information.
  • GNNs vs. Baselines: GNN-based methods show promise, especially when combined with node embeddings, but no single method consistently dominates across all three tasks. Edge-only heuristics surprisingly perform well on CR, highlighting the importance of graph structure.
  • Real-world Complexity: The dataset and tasks reflect the nuances of investment decision-making, where simple similarity scores aren't always sufficient, and ranking or retrieval is often the ultimate goal.

Key Results

  • SP Task: Node-only methods, particularly ADA2 (1536-d) with an AUC of 0.7450, and GNN-based methods like eGraphMAE (with SimCSE embeddings) achieving an AUC of 0.8253, perform well. ChatGPT also shows competitive performance.
  • SR Task: Node-only methods achieve a baseline of ~60-65%, while GNNs offer marginal improvements.
  • CR Task: Edge-only heuristics (WSP and W. Neighbors) stand out, demonstrating the importance of graph structure. Generative GNNs like GraphMAE and eGraphMAE perform comparably to node-only methods but don't fully exploit edge weights.

Limitations and Future Work

  • Data Sparsity and Skewness: CompanyKG is not an exhaustive representation of all possible edges, leading to sparse and sometimes skewed distributions, which poses challenges for learning.
  • Privacy and Confidentiality: True company identities are masked, and only embeddings are provided, limiting direct interpretability and potentially impacting certain downstream tasks.
  • No Single Best Method: No single method excels across all three evaluation tasks, suggesting the need for more robust and adaptable approaches.
  • Future Work: The authors suggest extending CompanyKG to a spatio-temporal graph to capture evolving relationships and exploring more advanced learning methods that can effectively leverage both node and edge information.

Summary updated

BibTeX
@article{cao2023companykg,
  author = {Lele Cao and Vilhelm von Ehrenheim and Mark Granroth-Wilding and Richard Anselmo Stahl and Andrew McCornack and Armin Catovic and Dhiana Deva Cavalcanti Rocha},
  title = {{CompanyKG: A Large-Scale Heterogeneous Graph for Company Similarity Quantification}},
  journal = {IEEE Trans. Big Data},
  year = {2023},
  url = {https://openreview.net/forum?id=C3CLteUsmQ},
}
Figure