Massive Multi-agent Data-Driven Simulations of the GitHub Ecosystem

Jim Blythe, John Bollenbacher, Di Huang, Pik-Mai Hui, Rachel Krohn, Diogo Pacheco, Goran Muric, Anna Sapienza, Alexey Tregubov, Yong-Yeol Ahn, Alessandro Flammini, Kristina Lerman, Filippo Menczer, Tim Weninger, Emilio Ferrara

TL;DR

Researchers successfully simulated the entire GitHub ecosystem—comprising 3 million agents and 30 million actions—to predict future software development activity. Their findings reveal that while complex machine learning models show promise, simple models based on an individual's recent stationary probability distribution are remarkably effective because developer behavior tends to change slowly.

What Problem Does This Paper Address?

Predicting "planetary-scale" techno-social systems is a massive computational and modeling challenge. Most agent-based models (ABMs) struggle to scale beyond a few thousand agents, yet real-world platforms like GitHub involve millions.

As part of the DARPA SocialSim program, the authors sought to model how users interact with repositories (forking, committing, watching, etc.) over time. The core challenge was twofold:

  1. Engineering: How do you run a simulation with 3 million agents and 6 million repositories on commodity hardware in a reasonable timeframe?
  2. Inference: How do you use 30 months of historical metadata to accurately predict the next month’s activity, including the "cold start" problem of new users and repositories appearing out of nowhere?

Methods

The team developed a multi-layered architecture to tackle the problem:

  • FARM & DASH: They used the FARM framework for distributed simulation and DASH for modeling cognitive agent behavior. To handle the scale, they employed a multi-level graph partitioning algorithm to group frequently interacting users and repositories on the same compute nodes, reducing cross-host communication by 67%.
  • Agent Models: They tested six distinct modeling approaches:
  • Null Model: A simple time-shift of the most recent data.
  • Stationary Probabilistic Models: These sampled actions based on an individual agent's historical frequency. The "Ground-event" variation, which selects the action and repository simultaneously, was particularly effective.
  • Link Prediction (LPE): Used graph embeddings (like Graph Factorization and HOPE) to predict the likelihood of a user interacting with a specific repository.
  • Bayesian Generative Model: A probabilistic flow that first decides if a user is new or existing, then selects an event category, and finally picks a repository.
  • S3D Algorithm: For new users with no history, they used Structured Sum of Squares Decomposition to identify which features (like "user is owner" or "programming language") best predict future actions.

Datasets

The study utilized a massive slice of GitHub public metadata:

  • Training Set: Two windows of data (August 2017 and January 2018) covering roughly 2.0M users and 3.3M repositories.
  • Challenge Task: Predict all events, users, and repositories for February 2018.
  • Metadata: Included repository languages, user types, and 124 extracted features for user-repository pairs.

Key Insights and Ideas

  • "Less is More" with Data: Surprisingly, using all 30 months of data was detrimental. The researchers found that developer behavior shifts over time; using only the most recent month of data proved optimal for building agent models.
  • Behavioral Inertia: The success of stationary models suggests that GitHub users are creatures of habit. If you know what a user did last week, you have a very high probability of predicting what they will do next week.
  • Individualization vs. Generalization: Models that maintained distinct characterizations for every single agent outperformed those that tried to generalize behavior across groups.
  • The Ownership Factor: For predicting "Push" events, the single most important feature was whether the user owned the repository. For "Pull Requests," the most important feature was whether the user and the repository shared the same primary programming language.

Key Results

  • Performance: The optimized framework simulated 3 million agents taking 30 million actions on 6 million repositories in just 20 minutes on a single machine with 64GB of RAM.
  • Accuracy: No single model won every metric. However, the Ground-event model (stationary probability) was the most broadly successful for predicting contributor counts and event totals.
  • Popularity: The Bayesian model performed best at predicting user popularity (top 500 users), while even the Null model was competitive in predicting repository popularity due to the high month-to-month turnover of "trending" projects.
  • Link Prediction: Graph Factorization (GF) significantly outperformed random baselines, particularly for predicting "Push" and "Issue" events, with a Mean Average Precision (MAP) of up to 0.48.

Limitations and Future Work

The authors identify the "chicken-egg" problem of the user-repository-event triad: it is difficult to decide which to predict first without biasing the others. While they made strides in modeling new users, predicting the very first interaction between a user and a brand-new repository remains a "cold start" challenge.

Future work involves creating hybrid agents that combine the best features of these six models and extending the framework to more volatile social environments like Twitter and Reddit, where behavior may change much faster than in the collaborative coding environment of GitHub.

Summary updated

BibTeX
@inproceedings{blythe2019massive,
  author = {Jim Blythe and John Bollenbacher and Di Huang and Pik-Mai Hui and Rachel Krohn and Diogo Pacheco and Goran Muric and Anna Sapienza and Alexey Tregubov and Yong-Yeol Ahn and Alessandro Flammini and Kristina Lerman and Filippo Menczer and Tim Weninger and Emilio Ferrara},
  title = {{Massive Multi-agent Data-Driven Simulations of the GitHub Ecosystem}},
  booktitle = {PAAMS},
  year = {2019},
  url = {https://openreview.net/forum?id=fOXnRtUzh38},
}

Loading related content...

Figure