Manuscript Offprint
arXiv:2610.36941Algorithmic Monoculture in Machine Learning-based Site-Specific Fertilizer Recommendation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Machine learning recommendations are often evaluated one model at a time, despite deployment across interconnected decision makers. For continuous NPK fertilizer prescriptions, correlated errors can aggregate across farms and generate systemic costs. A model of shared and farm-specific recommendation errors links expected social loss to model adoption shares; the Herfindahl–Hirschman Index characterizes concentration effects when common model errors are independent and predictive risks are equal. A covariance-generalized formulation captures the dependence between model families. A two-model threshold characterizes when privately optimal monoculture is socially dominated, and a convex portfolio rule limits average private predictive regret. Nine model families across five Moroccan cereal systems provide a benchmark-based calibration. Under illustrative parameters and a 10% regret cap, accuracy-constrained diversification lowers modeled social loss in all five systems by 10.89–41.53% (mean 19.41%). Uniform allocation reduces modeled loss in this setting, but breaches the regret cap in every crop. Correlation sensitivity shows that highly dependent model errors attenuate the benefits of diversification. These counterfactual outcomes are not estimates of agronomic or monetary welfare; the framework identifies adoption architecture and error dependence as ecosystem-level evaluation variables.
1 Introduction
Machine learning systems increasingly provide prescriptions rather than predictions [Ennaji et al., 2026]. Fertilizer recommendations influence nutrient purchases, application rates, and exposure to environmental externalities. Evaluation nevertheless remains model-centered: predictive error is measured for individual systems, while correlated consequences of adoption across farms receive less attention.
Algorithmic monoculture provides an economic lens for this problem. A shared algorithm may impair collective outcomes despite strong individual accuracy [Kleinberg and Raghavan, 2021]. Related work considers strategic adoption [Kleinberg et al., 2026], critiques unconditional claims about monoculture [Hedden and Raghavan, 2026], and investigates multiplicity or shared-provider outcomes [Gorecki and Hardt, 2025, Bommasani et al., 2026]. In ranking and matching settings, interactions can arise through congestion or competition for scarce selections. Continuous prescriptions instead create a distinct aggregation channel: model-common errors in cardinal nutrient recommendations can synchronize over- or under-application across adopters, with quadratic costs attached to aggregate imbalances.
The contribution is threefold. First, a continuous-action economic model links cross-farm adoption shares, shared recommendation errors, and aggregate externalities; the concentration result admits a cross-model covariance generalization. Second, a closed-form monoculture threshold and an
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Economics for Machine Learning.
accuracy-constrained convex portfolio make the private-risk versus systemic-risk tradeoff explicit. Third, an open benchmark of nine model families in five Moroccan cereal systems [Belgaid et al., 2026] calibrates the framework and illustrates sensitivity to externality intensity, error concentration, and cross-model dependence. The analysis concerns the assignment of distinct models across farms, not the averaging of their predictions within a single farm.
All quantitative outcomes are conditional on benchmark predictive risks and stated sensitivity parameters. Reference prescriptions are not causal agronomic optima, and modeled social-loss reductions are not estimated changes in yield, profit, or environmental damage.
2.1 Algorithmic monoculture and predictive multiplicity
Shared decision technology can create collective inefficiencies [Kleinberg and Raghavan, 2021, Kleinberg et al., 2026]; whether monoculture is harmful depends on a specified externality mechanism [Hedden and Raghavan, 2026]. Evidence from deployed prediction systems and hiring motivates ecosystem-level analysis [Gorecki and Hardt, 2025, Bommasani et al., 2026]. Predictive multiplicity concerns disagreement among comparably accurate models [Marx et al., 2020, Hsu et al., 2024]. By contrast, ensemble learning combines predictions for an individual decision [Wood et al., 2023]. Here, each farm uses one model; diversification does not average away that farm's private error but can reduce covariance-driven loss across adopters.
2.2 Decision-focused learning and fertilizer economics
Decision-focused learning and predict-then-optimize methods connect predictive quality to downstream decisions for a task [Donti et al., 2017, Elmachtoub and Grigas, 2022]. The present formulation additionally couples decisions across farms through aggregate externalities, even without performative distribution shift [Perdomo et al., 2020]. Site-specific fertilizer modeling and optimization are relevant antecedents [Ennaji et al., 2023, 2026, Belgaid, 2025, Belgaid and Ennaji, 2025]; econometric and experimental studies distinguish prescription fidelity from economically optimal nitrogen rates [De Lara et al., 2023, Tanaka et al., 2024]. Fertilizer externalities can differ from private costs [Keeler et al., 2016, Gourevitch et al., 2018]. The distinct object here is deployment-level loss from correlated multidimensional prescription errors rather than prediction or optimization accuracy alone.
3 Economic model
Consider farms and models. Farm uses model to produce a -dimensional prescription, with for , , and . Given benchmark reference prescription , define
The benchmark reference is not an identified agronomic optimum.
Assumption 1 (Common-error decomposition). For a fixed allocation , expectations are over the joint distribution of the zero-mean model-common shocks and farm-specific errors . The common shocks are mutually uncorrelated across model families; farm-specific errors are mutually uncorrelated across farms and orthogonal to every common shock. Second moments are homogeneous across farms within each model family. For a fixed nutrient-scaling matrix C, let
where the common-error share is shared across model families in the baseline calibration.
Let be the share of farms assigned model and . Average private loss is . A quadratic penalty on the normalized aggregate prescription error represents a stylized systemic externality:
(3) where , with integer adoption counts . Total loss is . Farm-specific contributions vanish at rate , whereas common shocks persist. Continuous optimization over relaxes the adoption-count grid, becoming exact at feasible integer allocations.
Cross-model covariance. Independence between model-common shocks is not required for the generalized framework. Define the positive semidefinite matrix , with diagonal entries . Orthogonality of farm-specific and common errors yields
Equation (3) is recovered for . Cross-model dependence, not concentration alone, then determines systemic exposure.
3.1 Concentration and monoculture threshold
Write HHI(q) = for the Herfindahl–Hirschman Index.
Proposition 1 (Concentration penalty). If for every model, then under Assumption 1, . For , uniform adoption minimizes loss and monoculture maximizes it over .
Proposition 2 (Accuracy-monoculture threshold). For two models with and , a marginal adoption shift to model 2 improves social loss if
provided the denominator is positive. Otherwise monoculture is optimal for all . For large n, the threshold approaches .
The most accurate model minimizes individual expected predictive risk, but need not minimize population-level loss. For , the unconstrained two-model allocation to model 2 is
for , set . Proofs and boundary conditions appear in Appendix A. With nonzero cross-model covariance , the denominator in Equation (5) becomes ; positive covariance can eliminate the incentive to diversify.
3.2 Accuracy-constrained diversification
A portfolio can minimize subject to an average private-regret bound:
The quadratic portfolio formulation is related to classical mean–variance optimization [Markowitz, 1955]. The objective is convex because is positive semidefinite. The cap constrains population-average predictive risk, not the risk experienced by every individual farm. This allocation problem differs from single-farm ensemble prediction.
4 Empirical calibration
4.1 Benchmarks and normalized risk
The calibration uses published turba-models benchmark results associated with turba-data recommendation scenarios and the independent Turba Fertilizer Machine Learning Stack [Belgaid et al., 2026, Turba Open Lab, 2026a,c,d]. Reference NPK targets originate from publicly accessible Fertimap recommendation workflows [Fertimap.ma, Turba Open Lab, 2026b]; they are not observed crop responses. The dataset comprises 132,017 crop-location recommendation scenarios from 44,096 unique coordinates. Nine regression model families (Extra Trees [Geurts et al., 2006], LightGBM [Ke et al., 2017], CatBoost [Prokhorenkova et al., 2018], Random Forest [Breiman, 2001], XGBoost [Chen and Guestrin, 2016], linear regression, ridge regression [Hoerl and Kennard, 1970], elastic net [Zou and Hastie, 2005], and AdaBoost [Freund and Schapire, 1997]) are evaluated across rainfed barley, grain maize, silage maize, irrigated wheat, and rainfed wheat. Models use six spatial and soil covariates, with deterministic crop-specific 80/20 benchmark partitions [Belgaid et al., 2026].
For crop c and model m, benchmark risk is the mean target-normalized unexplained variance,
On a common evaluation sample, this corresponds to Equation (2) for , with the reference-target variance using the benchmark's normalization. Equal variance-normalized nutrient weights are a calibration convention, not estimated nutrient-specific externality valuations.
4.2 Counterfactual design
The three lowest-risk models per crop form the candidate portfolio. Central illustrative parameters are , , , and average private-regret cap . None of , , or the cross-model correlations are identified by aggregate benchmark statistics. Four allocation policies are compared: lowest-risk monoculture, uniform allocation, constrained loss minimization (Equation (7)), and unconstrained social-loss minimization. The sensitivity grid spans , , and . Covariance sensitivity sets , , for . These are assumed scenarios, not measured residual correlations.
5 Experimental results
5.1 Predictive multiplicity and constrained outcomes
Figure 1 identifies the three lowest-risk model families per crop; the distinct alternative risks determine the private cost of diversification. For and , the analytical two-model thresholds vary from 0.35 (silage maize) to 2.34 (irrigated wheat).

Figure 1: Mean target-normalized unexplained variance for the three lowest-risk benchmark families in each crop system (log scale). Lower is better.
Table 1 reports the central calibration. Constrained portfolios reduce modeled loss in all five systems by 10.89–41.53%, averaging 19.41%. The private-regret cap binds in each crop; diversified allocations nevertheless differ substantially in concentration. All figures denote percentages of a dimensionless model objective, not realized welfare changes.
Table 1: Central calibration (, , , ). is the marginal two-model threshold; HHI and reduction refer to the three-model constrained portfolio.
| Crop | Best | Second | HHI | Reduction (%) | |
|---|---|---|---|---|---|
| Barley (Rainfed) | LightGBM | CatBoost | 2.22 | .836 | 11.25 |
| Maize (Grain) | XGBoost | AdaBoost | 1.12 | .706 | 21.34 |
| Maize (Silage) | XGBoost | AdaBoost | .35 | .457 | 41.53 |
| Wheat (Irrigated) | LightGBM | CatBoost | 2.34 | .844 | 10.89 |
| Wheat (Rainfed) | LightGBM | CatBoost | 2.08 | .826 | 12.04 |
The constrained shares assigned to the lowest-risk model are 91.0% for barley, 82.1% for grain maize, 57.0% for silage maize, 91.7% for irrigated wheat, and 90.4% for rainfed wheat. Uniform allocation also lowers modeled loss in the central calibration, but exceeds the 10% average private-regret cap for all five crop systems (22.99–99.16%). Its value is conditional: at , uniform diversification increases loss because no systemic externality offsets the sacrifice in private predictive risk. Complete three-model risks, shares, and outcomes for all four policies appear in Appendix B and the notebook.
5.2 Parameter and covariance sensitivity
Among 600 crop-by-parameter scenarios, 69.0% yield strictly positive constrained loss reductions. This is a fraction of the prespecified grid, not an estimated probability of benefits. Gains vanish for and generally increase with assumed common-error exposure and externality intensity (Figure 2).

Figure 2: Mean constrained social-loss reduction across the sensitivity grid as a function of and . Each cell averages five crop systems and three regret caps ().

Figure 3: Illustrative sensitivity to assumed pairwise correlation between model-common errors; constrained portfolios are optimized separately at each with , , and . Correlations are not empirically identified.
Figure 3 examines covariance among common model errors. With , modeled constrained gains are 1.19–15.94% across crops; with , no material gains remain in this calibration. This limits unconditional interpretations of model diversity: error independence is consequential, and adoption concentration alone does not identify systemic exposure.
6 Economic interpretation and institutional value
Individual model rankings need not determine efficient ecosystem architecture. A centralized advisor could assign distinct models across farms, whereas a decentralized provider market could produce adoption shares through individual choices. Either interpretation requires distinguishing portfolio allocation across farms from ensemble averaging within a farm. The regret constraint limits the population-average predictive sacrifice when governance objectives favor diversification. Provider concentration, model-version concentration, and error dependence are relevant deployment statistics. Adoption itself remains institutionally mediated; evidence from Moroccan wheat systems associates recommended fertilizer uptake with information, credit, incentives, and market access [Azhari et al., 2024].
7 Limitations
The benchmark evaluates fidelity to upstream recommendation outputs, not causal yield response or agronomic optimality. Deterministic crop-specific random splits primarily measure interpolation; nearby geographical samples may be dependent, and maize evaluation includes substantially fewer locations than winter cereals [Belgaid et al., 2026]. Aggregate cannot identify the common-error share , the externality weight , or the covariance of model-common shocks. Pairwise residual correlations on one holdout set alone cannot separate persistent cross-farm common shocks from correlated site-level errors. Grouped or repeated observations across regions, seasons, or training realizations would be needed for variance-component identification. Fertilizer market effects and environmental damage require separate causal or structural evidence [Keeler et al., 2016, Gourevitch et al., 2018]. Adoption shares are treated as exogenous, and the quadratic externality is stylized. The reported gains are conditional modeled losses rather than estimated farm profits, emissions reductions, or monetary social welfare.
8 Conclusion
Continuous fertilizer prescriptions provide an economic mechanism for algorithmic monoculture: shared model errors can aggregate across farms and generate systemic costs. Under explicit assumptions, HHI captures concentration risk; with correlated model-common errors, the relevant quantity is the covariance-weighted adoption portfolio. Benchmark-calibrated counterfactuals illustrate when regret-constrained allocation can improve modeled social loss and when dependence among model errors removes that advantage. Ecosystem-level evaluation therefore requires both predictive-risk safeguards and careful treatment of error covariance and externality assumptions.
References
Mohamed El Azhari, Youssef El Hamadi, Mohamed Boughlala, and Samia Hattab. Factors affecting the adoption of recommended fertilizer doses by wheat farmers in the Casablanca-Settat region of Morocco. AGRIS on-line Papers in Economics and Informatics, 16(2):25–38, 2024.
Abdelghani Belgaid. Site-specific fertilizer recommendation through machine learning. Master's thesis, University Mohammed VI Polytechnic, 2025.
Abdelghani Belgaid and Oumnia Ennaji. Sagda: Open-source synthetic agriculture data for africa. arXiv preprint arXiv:2506.13123, 2025.
Abdelghani Belgaid, Zakaria Mahmoud, Fahd Chibani, Oumnia Ennaji, Younes Boudoul, and Dounia Rachid. Technical report on the turba fertilizer machine learning stack in Morocco. arXiv preprint arXiv:2610.05949, 2026.
Rishi Bommasani, Sarah H Bana, Kathleen A Creel, Dan Jurafsky, and Percy Liang. Algorithmic monocultures in hiring. In The 2026 ACM Conference on Fairness, Accountability, and Transparency, pages 6351–6382, 2026.
Leo Breiman. Random forests. Machine learning, 45(1):5–32, 2001.
Tianqi Chen and Carlos Guestrin. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, pages 785–794, 2016.
Alfonso De Lara, Taro Mieno, Joe D Luck, and Laila A Puntel. Predicting site-specific economic optimal nitrogen rate using machine learning methods and on-farm precision experimentation. Precision Agriculture, 24(5):1792–1812, 2023.
Priya Donti, Brandon Amos, and J Zico Kolter. Task-based end-to-end model learning in stochastic optimization. Advances in neural information processing systems, 30, 2017.
Adam N Elmachtoub and Paul Grigas. Smart “predict, then optimize”. Management science, 68(1): 9–26, 2022.
Oumnia Ennaji, Leonardus Vergütz, and Achraf El Allali. Machine learning in nutrient management: A review. Artificial Intelligence in Agriculture, 9:1–11, 2023.
Oumnia Ennaji, Abdelghani Belgaid, and Achraf El Allali. Machine learning-based optimization of site-specific NPK fertilizer recommendation. Smart Agricultural Technology, page 101823, 2026. doi: 10.1016/j.atech.2026.101823.
Fertimap.ma. http://www.fertimap.ma/. Accessed August 2026.
Yoav Freund and Robert E Schapire. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of computer and system sciences, 55(1):119–139, 1997.
Pierre Geurts, Damien Ernst, and Louis Wehenkel. Extremely randomized trees. Machine learning, 63(1):3–42, 2006.
Mila Gorecki and Moritz Hardt. Monoculture or multiplicity: Which is it? Advances in Neural Information Processing Systems, 38, 2025.
Jesse D Gourevitch, Bonnie L Keeler, and Taylor H Ricketts. Determining socially optimal rates of nitrogen fertilizer application. Agriculture, Ecosystems & Environment, 254:292–299, 2018.
Brian Hedden and Manish Raghavan. Algorithmic monoculture and its critics. arXiv preprint arXiv:2604.06047, 2026.
Arthur E Hoerl and Robert W Kennard. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1):55–67, 1970.
Hsiang Hsu, Ivan Brugere, Shubham Sharma, Freddy Lecue, and Chun-Fu Chen. RashomonGB: Analyzing the Rashomon effect and mitigating predictive multiplicity in gradient boosting. Advances in Neural Information Processing Systems, 37:121265–121303, 2024.
Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. LightGBM: A highly efficient gradient boosting decision tree. Advances in neural information processing systems, 30, 2017.
Bonnie L Keeler, Jesse D Gourevitch, Stephen Polasky, Forest Isbell, Chris W Tessum, Jason D Hill, and Julian D Marshall. The social costs of nitrogen. Science advances, 2(10):e1600219, 2016.
Jon Kleinberg and Manish Raghavan. Algorithmic monoculture and social welfare. Proceedings of the National Academy of Sciences, 118(22):e2018340118, 2021.
Robert Kleinberg, Erald Sinanaj, and Éva Tardos. Price of anarchy of algorithmic monoculture. arXiv preprint arXiv:2604.00444, 2026.
Harry M Markowitz. Portfolio selection. PhD thesis, The University of Chicago, 1955.
Charles Marx, Flavio Calmon, and Berk Ustun. Predictive multiplicity in classification. In International conference on machine learning, pages 6765–6774. PMLR, 2020.
Juan Perdomo, Tijana Zrnic, Celestine Mendler-Dünner, and Moritz Hardt. Performative prediction. In International conference on machine learning, pages 7599–7609. PMLR, 2020.
Liudmila Prokhorenkova, Gleb Gusev, Aleksandr Vorobev, Anna Veronika Dorogush, and Andrey Gulin. CatBoost: unbiased boosting with categorical features. Advances in neural information processing systems, 31, 2018.
Takashi ST Tanaka, Gerard BM Heuvelink, Taro Mieno, and David S Bullock. Can machine learning models provide accurate fertilizer recommendations? Precision Agriculture, 25(4):1839–1856, 2024.
Turba Open Lab. Turba Software, May 2026a. URL https://doi.org/10.5281/zenodo.20044002.
Turba Open Lab. turba-client. https://github.com/open-turba/turba-client, 2026b. Python client for soil profile and fertilizer recommendation workflows in Morocco.
Turba Open Lab. turba-data. https://github.com/open-turba/turba-data, 2026c. Analysis-ready fertilizer recommendation datasets for Morocco.
Turba Open Lab. turba-models. https://github.com/open-turba/turba-models, 2026d. Pretrained fertilizer recommendation models and benchmark results for Morocco.
Danny Wood, Tingting Mu, Andrew M Webb, Henry WJ Reeve, Mikel Lujan, and Gavin Brown. A unified theory of diversity in ensemble learning. Journal of machine learning research, 24(359):1–49, 2023.
Hui Zou and Trevor Hastie. Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society Series B: Statistical Methodology, 67(2):301–320, 2005.
A Proofs and theoretical details
A.1 Concentration proposition
Under Assumption 1, orthogonality removes cross terms in the expected squared aggregate error, giving Equation (3). If , the private term equals and the common-error contribution equals . For , the inequality gives the minimum and maximum at uniform allocation and monoculture, respectively.
A.2 Accuracy-monoculture threshold and edge cases
Write and let model 2 receive share . The first derivative of the social-loss objective at monoculture is
Since , a positive denominator in Equation (5) and exceeding the threshold imply a beneficial marginal shift. If the denominator is nonpositive, for every and monoculture remains optimal. When , solving and clipping to gives Equation (6); when , . Under correlated common errors, the cross term yields the adjusted denominator . The convexity of Equation (4) follows from .
B Benchmark details and sensitivity results
Table 2: Top-three benchmark risks (mean ; selected for each crop). All values are dimensionless.
| Crop | First | Second | Third | |||
|---|---|---|---|---|---|---|
| Barley (Rainfed) | LightGBM | .00005460 | CatBoost | .00011515 | XGBoost | .00013841 |
| Maize (Grain) | XGBoost | .01262319 | AdaBoost | .01966976 | CatBoost | .04116564 |
| Maize (Silage) | XGBoost | .00572708 | AdaBoost | .00671774 | CatBoost | .00868627 |
| Wheat (Irrigated) | LightGBM | .00003935 | CatBoost | .00008541 | XGBoost | .00008938 |
| Wheat (Rainfed) | LightGBM | .00006606 | CatBoost | .00013461 | XGBoost | .00019402 |
Table 3: Counterfactual social-loss reductions relative to lowest-risk monoculture, at , , (%); uniform and unconstrained allocations do not satisfy the 10% regret cap.
| Crop | Monoculture | Uniform | Constrained | Social optimum |
|---|---|---|---|---|
| Barley (Rainfed) | 0 | 16.36 | 11.25 | 29.32 |
| Maize (Grain) | 0 | 13.76 | 21.34 | 32.55 |
| Maize (Silage) | 0 | 45.32 | 41.53 | 46.99 |
| Wheat (Irrigated) | 0 | 19.35 | 10.89 | 30.43 |
| Wheat (Rainfed) | 0 | 11.46 | 12.04 | 28.05 |
Table 4: Constrained adoption shares (percentage of farms), in order of first, second, and third model in Table 2; private-regret constraint binds at 10% in each crop.
| Crop | (%) | (%) | (%) |
|---|---|---|---|
| Barley (Rainfed) | 90.98 | 9.02 | 0.00 |
| Maize (Grain) | 82.09 | 17.91 | 0.00 |
| Maize (Silage) | 57.00 | 35.55 | 7.45 |
| Wheat (Irrigated) | 91.68 | 5.79 | 2.53 |
| Wheat (Rainfed) | 90.36 | 9.64 | 0.00 |
C Reproducibility and compute
The executable analysis and all displayed tables and figures are available in the supplementary Jupyter notebook and at https://github.com/abdelghanibelgaid/algorithmic-monoculture-fertilizer. The nine-family leaderboard is loaded from turba-models commit c4376f99587cb00d7ae9de92389914ecc29c1412; its source CSV has SHA-256 915d41dc73801f8d0fbfed1a036b82aec7266c737383d1bec1cfd50f431c874f. The notebook reports its execution environment, loads the registered turba-data dataset, and runs CPU-based tabular analysis and constrained quadratic optimization. Inference about agronomic welfare or observed cross-model common shocks is outside its scope.