- The paper introduces a framework that converts file-level code-diff embeddings into one-dimensional developer opinions and fits the Expressed-Private Opinion model to estimate private views, public expression, and trust networks.
- The method fits two of three repositories well—Ceph achieves 7.33% MAPE and PyTorch 12.70%—while Swift’s 17.73% MAPE highlights challenges in modeling volatile developer communities.
- The paper finds heterogeneous influence patterns and improving forecast accuracy over time, but its conclusions remain limited by a selective sample of 21 highly active C++ contributors and the unvalidated assumption that code changes represent opinions.
Overview
This paper proposes a quantitative framework that treats code changes in open-source repositories as expressions of developer "opinions" and models their evolution with opinion dynamics theory (2602.15412). The central assumption is that each developer holds a latent view of the repository, and that pull requests (PRs) — the semantic deltas they introduce to files — are observable expressions of that view. The framework couples three components: semantic code embeddings of file-level diffs, dimensionality reduction via PCA to a scalar opinion axis, and fitting of the Expressed-Private Opinion (EPO) model to recover trust matrices and private/expressed opinion trajectories. The authors apply it to three large C++ repositories on GitHub: swiftlang/swift (195k PRs), ceph/ceph (164k), and pytorch/pytorch (143k).
Methodology
The pipeline begins with the "88.6 Million Developer Comments from GitHub" corpus. From the C++ subset, the authors identify the top 1% most active contributors per repository who also submitted PRs continuously over the observation window, yielding seven developers per repository (21 total). For each PR, both original and modified versions of every touched file are embedded using the intfloat/e5-base-v2 Transformer model, chosen for its strong CoIR benchmark ranking at small size. The per-file opinion is the embedding difference σf=σn−σo; per-PR opinions are averages over files; per-developer monthly opinions are averages over that developer's PRs.
For dimensionality reduction, the authors compare PCA, UMAP, LLE, and MDS using trustworthiness, continuity, MRRE, and Spearman correlation. PCA achieves the best balance (average trustworthiness 0.6682, continuity 0.8256, MRRE 0.1789), narrowly ahead of UMAP, while MDS performs worst across all metrics (average trustworthiness 0.5500). Scree analysis shows the first principal component dominates the variance, justifying a one-dimensional opinion value xd(t)=PCA(σd(t))∈[0,1].
The temporal dynamics are then modeled with the linear synchronous EPO model of Ye et al., which extends Friedkin–Johnsen by separating private opinion X(t) from expressed opinion Xe(t):
X(t+1)=diag(W)X(t)+(W−diag(W))Xe(t)
Xe(t)=ΦX(t)+(I−Φ)AXe(t−1)
Here W is the row-stochastic trust matrix governing private-opinion assimilation, A (zero diagonal) regulates public expression, and Φ modulates the private–expressed coupling. Parameters are recovered by constrained least-squares minimization of a joint fitting objective, solved in Mathematica; embedding computation took ~5.1 GPU-hours and optimization ~3.2 CPU-hours.
Results
Fitting across ten time periods produces several findings:
| Repository |
MAE |
MAPE (%) |
RMSE periods 11 |
RMSE period 12 |
| ceph |
0.0733 |
7.70 |
0.2264 |
0.1739 |
| pytorch |
0.0500 |
12.70 |
0.1762 |
0.0907 |
| swift |
0.1164 |
17.73 |
0.4071 |
0.1915 |
The model fits ceph and pytorch well but degrades substantially on swift, whose opinion trajectories are markedly more volatile. Two behavioral observations stand out:
- Opinion–expression alignment among top contributors: most top-1% developers show near-identical private and expressed opinions, which the authors attribute to seniority — these developers no longer rely on review feedback.
- Trajectory heterogeneity: in ceph, some developers initially diverge privately from their public stance but converge toward peers' private opinions over time while progressively aligning private and expressed views, which the authors interpret as staged growth in technical independence.
Forecasting beyond the fitted window shows RMSE for period 12 consistently lower than for period 11 across all repositories — an apparent hysteresis effect. Error metrics stabilize once at least six time steps are used for fitting, and errors in the later half of the series are consistently lower than in the earlier half, supporting the claim that developer perspectives stabilize as the codebase matures. Network analysis of W reveals heterogeneous influence structures: e.g., in pytorch, agent 5 is fully dependent on peers while agent 7 is fully autonomous; in swift, agents 2 and 5 fully adopt others' opinions while others exhibit strong stubbornness.
Limitations and open questions
Several constraints qualify these results. First, the sample is small and selective: seven continuously active top-1% developers per repository, drawn only from C++ PRs in a single comment corpus; generalization to less active contributors or other languages is not established. Second, interpreting embedding-difference magnitude as "opinion" conflates technical change size with social stance — the authors' own reading of volatile curves as "senior contributors driving major changes" is stated as an intuition rather than validated against ground truth about developer roles. Third, the hysteresis effect (better prediction at period 12 than 11) is observed but not explained mechanistically. Fourth, the model's poor fit on swift indicates that linear synchronous EPO dynamics may not accommodate highly volatile communities, and no alternative model class is tested. Finally, the framework excludes natural-language signals — issue trackers, review discussions, governance structure — which likely mediate the very trust relations xd(t)=PCA(σd(t))∈[0,1]0 encodes.
Conclusion
The paper offers a concrete bridge between code embeddings and computational social science, showing that EPO-style opinion dynamics can be parameterized directly from code diffs and yield interpretable trust networks and opinion trajectories in major open-source projects. Its empirical claims rest on a small, curated sample and an unvalidated mapping from semantic change to opinion, but the demonstrated fit quality on two of three repositories and the recovery of differentiated influence patterns establish a workable baseline for data-driven socio-technical analysis of software evolution.