Abstract
Information diffusion on social coding platforms like GitHub is driven by the act of "forking" repositories. This paper introduces DeepFork, a deep neural network model that frames this diffusion as a link prediction task within a bipartite network of users and repositories. By leveraging a combination of node-level features, topological graph metrics, and explicit user intent signals (Watch events), DeepFork predicts future fork events with 75.2% accuracy, significantly outperforming traditional machine learning classifiers.
Introduction
While information diffusion is well-studied in traditional social media like Twitter or Facebook, "social coding" platforms like GitHub present unique dynamics. On GitHub, diffusion is manifested through "forking" — the process where a developer copies a repository to experiment, contribute, or build new software. Understanding how code propagates across this network is crucial for modeling human influence in collaborative environments.
The core challenge addressed by this research is predicting a specific triangular diffusion pattern: if a "followee" (User A) forks a repository at time $T$, will their "follower" (User B) fork that same repository at time $T+1$? This effectively treats information diffusion as a link prediction problem in a bipartite graph.
Methodology
The authors propose DeepFork, a deep feedforward neural network designed for binary classification of future links. The model's input is a comprehensive feature vector designed to capture both individual node characteristics and the broader network structure.
Feature Engineering
The model utilizes a 17-dimensional feature vector:
- Node-level Features (15): These include user-specific metrics (e.g., follower count, public repo count) and repository-specific metrics (e.g., total forks, open issues).
- User Intent Signals (2): Binary indicators for "Watch" events, which signal a user's interest in a repository prior to a fork.
- Topological Metrics: Six classic graph-theory measures are incorporated to capture network connectivity, including Katz centrality, Adamic Adar, and Jaccard Coefficients.
Model Architecture
The researchers experimented with two primary variants of DeepFork: a four-layered and a six-layered fully connected network. Both architectures utilize Batch Normalization to stabilize training and the Adam optimizer for efficient weight updates.
Experimental Setup
The study utilizes an anonymized GitHub dataset provided by DARPA via the GHTorrent project for the "SocialSim" challenge. The data spans from August 2016 to February 2017. To ensure a high-quality signal, the training network was filtered to include repositories with at least 25 forks and users with at least 10 forks, resulting in a network of approximately 74,393 nodes and 770,000 edges.
Results and Key Insights
DeepFork consistently outperformed traditional machine learning benchmarks, including Random Forests, SVMs, and Naive Bayes.
| Model | Accuracy |
|---|---|
| DeepFork (Full Features) | 75.2% |
| Random Forest | 69.2% |
| DeepFork (No Watch Events) | 61.1% |
The Critical Role of "Watch" Events
An ablation study revealed that "Watch" events are the single most powerful predictor of future diffusion. Removing these signals caused the model's accuracy to drop from 72.6% to 61.1%. This suggests that explicit user interest is a primary driver of code adoption.
Node Features vs. Topology
A significant finding was that node-specific features (who the user is and what the repo contains) are more informative for predicting diffusion on GitHub than abstract topological features. The "followee-follower" relationship serves as the primary conduit through which this information flows.
Conclusion and Future Work
DeepFork demonstrates the efficacy of deep learning in predicting complex information diffusion patterns on social coding platforms. However, limitations remain. The current model does not explicitly account for global repository popularity, and future iterations could benefit from more granular temporal modeling to predict when a fork will occur. Additionally, identifying "gatekeeper" repositories that act as hubs for information spread remains a key area for future research.
Summary updated