Developer Tools

New study predicts AI vs human PR acceptance with 95% F1 accuracy

Random forest models can predict PR acceptance before any reviewer feedback or CI results

Deep Dive

A new paper by Kartik Ghanshyambhai Pansuriya, Ehsan Ghorbani, Deepak Singh, and Eman Abdullah AlOmar investigates whether machine learning can predict pull request (PR) acceptance and review effort from submission-time data alone. Using the AIDev dataset, which contains both human- and AI-agent-authored PRs, the researchers built a leakage-aware prediction pipeline that excludes any post-submission signals like reviewer comments or CI status. The feature set includes PR text characteristics, metadata, repository context, temporal signals, and lightweight diff statistics. They evaluated Logistic Regression, Random Forests, Gradient Boosting, Extra Trees, and Multi-Layer Perceptrons across pooled, human-only, agent-only, and balanced contributor views.

Results show that acceptance prediction is highly feasible: tree-based models achieve F1 scores above 0.95, with textual clarity and metadata being the most influential predictors. This means maintainers can triage incoming PRs early, flagging likely rejects before any human effort is spent. However, predicting review effort (measured by comment count and time-to-merge) proved far more difficult—submission-time features only modestly explain these outcomes. The authors conclude that while early PR models can support triage and reviewer prioritization, they should remain advisory tools rather than automated gatekeepers, as team-specific workflows and reviewer availability dominate effort estimation.

Key Points
  • Tree-based models (Random Forest, Gradient Boosting) achieve F1 > 0.95 for acceptance prediction using only submission-time features
  • Review effort prediction (comment count, time-to-merge) is much harder, suggesting team dynamics and reviewer availability are key factors
  • Study used AIDev dataset with both human- and AI-agent-authored PRs, evaluating 5 classic ML models across multiple contributor views

Why It Matters

Enables early triage of AI and human PRs, potentially saving maintainer hours but cautioning against full automation.

📬 Get the top 10 AI stories daily