Abstract
Taxonomies are essential for structured knowledge representation in software engineering, yet existing general-purpose knowledge bases often lack the timeliness and granularity required for modern development. This paper presents a novel approach to building a large-scale software programming taxonomy by mining the Stack Overflow ecosystem. Using a semi-supervised machine learning pipeline, the researchers extracted over 38,000 concepts and 68,000 subsumption ("is-a") relationships. The resulting taxonomy is significantly deeper and more specialized than traditional sources like Wikipedia or Yago, providing a robust framework for tasks such as defect prediction and automated search.
Introduction
In the rapidly evolving field of software engineering, hierarchical classifications of concepts—taxonomies—are vital for organizing knowledge. However, current taxonomies face three primary challenges: they are often manually constructed (leading to small, shallow structures), they lag behind the fast-paced release cycles of new frameworks, and they lack the fine-grained detail necessary for technical tasks. For instance, while a general taxonomy might include "Data Structure," it rarely captures the specific relationships between specialized implementations like HashMap and ConcurrentHashMap.
To address this, the authors leverage Stack Overflow, the world’s largest archive of programming knowledge, to create a structured, hierarchical map of software concepts.
Methodology
The researchers developed a machine learning pipeline designed to handle the scale and informal nature of social media tags. The process involves several key stages:
- Candidate Selection (Blocking): To manage the computational complexity of checking billions of potential tag pairs, the authors used a blocking mechanism. Only pairs that co-occurred in at least one question were considered, reducing the search space to 3 million candidates.
- Feature Engineering: Six distinct features were extracted to measure tag relationships, including lexical similarity (e.g., "asp.net" vs. "asp.net-mvc"), co-occurrence metrics within questions and wiki descriptions, and topic-based distributions using Latent Dirichlet Allocation (LDA).
- Iterative Semi-supervised Learning: Given the scarcity of labeled data, the system employed self-training. Starting with a small set of high-confidence labels derived from linguistic patterns, an SVM classifier iteratively identified and labeled new relations over five iterations.
Key Results and Comparison
The resulting taxonomy represents a significant advancement in software knowledge representation. It contains 38,205 unique concepts and 68,098 subsumption relations. The iterative approach achieved a final accuracy of 75.90%, outperforming traditional co-occurrence baselines.
When compared to established knowledge bases like Yago and WikiTaxonomy, the Stack Overflow-derived taxonomy demonstrated superior coverage and depth. As shown in the comparison table below, the new taxonomy reached a maximum depth of 28 levels, whereas WikiTaxonomy reached only 6. This depth allows for highly specific semantic paths, such as machine learning → bayesian → bayesian network → belief propagation.
Discussion and Future Work
Stack Overflow serves as a "living" corpus that captures the informal but accurate vocabulary used by developers in real-time. By focusing on the asymmetry of "is-a" relations, the authors were able to capture hierarchical structures that symmetric co-occurrence models miss.
Despite its success, the taxonomy is limited by the informal nature of user-generated tags, which can introduce noise. Future research aims to integrate data from additional sources like GitHub and Wikipedia to create a more comprehensive "master" software taxonomy and to apply this structure to real-world tools like recommendation engines and automated documentation systems.
Summary updated