Pooling Locked Soil Carbon Records Under Encryption

Global soil carbon maps and the process models used to check them are calibrated mostly on profiles from North America and Europe. Africa, Central and West Asia and other data-sparse regions are filled in by extrapolation. Part of the missing data is not missing at all. It sits in national surveys, agronomic company archives and project databases whose owners will not hand over raw records.

This proposal asks whether those owners could jointly produce one privacy-protected synthetic soil dataset without anyone, including the server doing the computation, ever seeing a raw profile. Each data holder would summarize its own records into count tables. It would encrypt those tables with homomorphic encryption, a scheme that lets a server add and multiply encrypted numbers without decrypting them. An untrusted server would then run a differentially private synthetic-data generator over the encrypted tables. Differential privacy means calibrated noise is added so that no single record can be inferred from the output.

The bet is that soil carbon is a setting where the usual cost of homomorphic encryption mostly disappears. That cost comes from long chains of encrypted multiplications that force expensive noise-refreshing steps. The data that matters most here comes from small holders, and only pooling before noise is added can keep their contribution from being drowned out.

Core Claim

The closest existing work is FHAIM. It runs the AIM synthetic-data mechanism over CKKS-encrypted records. AIM repeatedly picks the low-dimensional count tables ("marginals") the current synthetic model gets most wrong, then measures them with noise. FHAIM replaces AIM's L1 selection score with a squared L2 score so it stays polynomial. It matches plaintext AIM at $\epsilon=\infty$, stays comparable at $\epsilon=1$, and trains in roughly 11 to 30 minutes. All of this is on single-owner tables of at most 7,214 rows and 10 attributes.

We differ from FHAIM in three ways. First, the setting has many data holders, and their sizes are highly unequal. Second, holders encrypt their own pre-computed marginal tables rather than raw records. This makes the server's counting step a pure sum of ciphertexts, so its cost no longer depends on the number of rows. Third, the attributes are continuous environmental drivers. We bin them using public gridded covariate products, which costs no privacy budget.

The claim we test is threefold. Encrypted central pooling should give clearly better downstream soil carbon models in held-out data-sparse regions than the obvious crypto-free alternative of each holder releasing its own private synthetic data. It should do so at an encrypted multiplication depth of about two, with no bootstrapping. And the pooled synthetic data should preserve the scientific signals that make soil data useful for diagnosing process models.

The source of the expected gain is simple. Suppose there are $k$ holders with disjoint records. If each releases a noisy marginal with noise scale $\sigma$ and the releases are summed, the pooled table carries noise of scale $\sqrt{k}\,\sigma$. Central measurement adds $\sigma$ once.

$$\text{noise}_{\text{local-pooled}} = \sqrt{k}\,\sigma \quad\text{vs.}\quad \text{noise}_{\text{central}} = \sigma$$

The $\sqrt{k}$ factor is just variance adding over independent noise draws. A small holder in an under-sampled region contributes counts that may be smaller than $\sigma$. Its signal survives central pooling but is buried under local release.

Research Program

The motivating evidence comes from soil science. Wang et al. used 37,691 WoSIS profiles and showed two things. Random forests with broad environmental predictors reach R² of about 0.6 for the top 30 cm, while the process models MIMICS and MES-C reach 0.13 to 0.16. Explanation tools (SHAP values and partial dependence plots) further revealed that the process models omit cation exchange capacity, and that they impose a monotonic response to net primary production where the data show a peak and then a decline.

That diagnosis is only as good as the spatial coverage of the profiles. Syntheses of global flux data limitations and of the African carbon balance document that coverage in those regions is thin. The general point that primary data held by private parties is the hardest input to obtain appears in carbon footprinting work. Balaji et al. score primary data collection 80.0 on their 0 to 100 difficulty index, and the E-liability knowledge graph paper calls for privacy-preserving computation but implements none. We take soil profiles as the concrete case because it has a public benchmark and a known scientific use.

The system we would build has four parts.

Records and privacy unit. Each profile becomes one record. Its attributes are top-layer soil organic carbon, deeper-layer carbon, measured cation exchange capacity, pH, texture, and the climate and productivity covariates at its location. One profile is the unit of privacy, so multiple depth layers never multiply a profile's influence.

Binning. Continuous attributes are binned using quantiles from the global public land grids: WorldClim 2, ERA5-Land, SoilGrids 2.0 and MODIS productivity, as used by Wang et al. Bin edges therefore cost zero privacy budget and need no encrypted sorting.

Client-side encryption. Each holder computes, in plaintext on its own machine, every candidate one-, two- and three-way marginal in a fixed workload. It packs the cells into CKKS ciphertexts using the batching idea from CryptoNets, which places thousands of values in one ciphertext. It uploads these ciphertexts once.

Server-side generation. The server sums ciphertexts across holders. It then runs FHAIM's encrypted squared-L2 selection against the current model's public estimate, which takes one subtraction and one squaring. It uses pre-sampled encrypted Gumbel noise for the private choice and adds Gaussian noise for measurement. The total depth is about two.

This design avoids the two cost drivers documented in the encrypted inference literature. The first is deep polynomial approximations of nonlinear functions, whose degree-versus-accuracy trade-off SecureNets and SAFENet work around. Here all nonlinear modeling, including the random forest itself, happens on decrypted synthetic data. The second is the gigabytes of key and ciphertext traffic per request reported by Haralampieva. Here traffic scales with the number of workload cells, not with rows or network layers.

Because depth is fixed and small, the encryption parameters can be chosen once. This sidesteps the "steppy" parameter jumps that NASS needed a 60-GPU-hour search to manage. We inherit FHAIM's restricted decryption oracle for the intermediate selection results, and we state that semi-honest trust assumption plainly as a limitation.

The analysis has two parts. On the systems side, we will characterize server runtime and per-holder upload as functions of three quantities: the number of holders, the number of attributes, and the bins per attribute. On the scientific side, we will test whether synthetic data reproduces the Wang et al. diagnosis.

Baselines

Do-nothing reference. This is what practice looks like today. A random forest with Wang et al.'s broad predictor set is trained only on the holders treated as "public" (the data-dense regions). It is then tested on held-out profiles from the regions treated as "locked". This measures the extrapolation error we hope to reduce. Any method must beat it in the locked regions to justify itself.

Plaintext real-data oracle. The same random forest is trained on all real profiles. Wang et al. report R² of about 0.6 for the top 30 cm with their predictor set, and that is the ceiling reference. No method that adds privacy noise should exceed it.

Local per-holder AIM (strongest competitor). Each holder runs plaintext AIM on its own records at the same $\epsilon$, and the synthetic records are concatenated. This is the strongest competitor because it needs no cryptography, no oracle and no coordination. Under parallel composition it gives the same formal guarantee as our method.

Central plaintext AIM. AIM is run on the pooled real data at the same $\epsilon$. This is what an ideal trusted curator would produce. FHAIM reports that its encrypted output matches it, so this baseline isolates whether our encryption and binning changes cost utility.

Fairness of comparison. All private methods use identical bins, identical marginal workloads, identical $\epsilon$ in {0.5, 1, 4} and identical downstream random forest hyperparameters. Each gets ten generation seeds. For the encrypted cost comparison, the strongest reported reference is FHAIM's 11 to 30 minutes on tables of up to 7,214 rows. We find no reported result on Lacuna for any encrypted synthetic-data method on WoSIS or any environmental table.

Ablations. The first ablation isolates the key ingredient by encrypting raw records at the server, as FHAIM does, and comparing runtime and upload at fixed output. The second replaces public-grid binning with equal-width bins, and also with private quantiles that spend part of the budget.

What counts as beating the competitor. We count it as a win if central encrypted pooling improves held-out R² over local per-holder AIM by at least 0.05 in the locked regions at $\epsilon=1$, with nonoverlapping seed intervals. The run must also finish in hours on one CPU server.

Why not just…?

Why not just have each holder release its own private synthetic data? This is the real threat. It is why local per-holder AIM is the main baseline rather than a footnote. If holders are few and large, the $\sqrt{k}$ argument predicts a small gap and local release may suffice. If they are many and small, as in sparse regions, the gap should be large. We will vary holder size distributions explicitly. If the gap falls below 0.05 R² in the realistic partition, we will report that encryption is unnecessary for this use.

Why not just use secure aggregation, which only sums encrypted values? The counting step is indeed only a sum, and our design exploits that. AIM's selection step, however, scores the squared error of the pooled exact marginal against the model estimate. That quantity does not split into per-holder pieces. A sum-only protocol would therefore have to measure every candidate marginal with noise, spending budget on tables never needed. The experiment that settles this runs a "measure all workload marginals via noisy secure sums" variant at equal $\epsilon$ and compares utility. If it matches, the encrypted selection step is not worth keeping.

Why not just train the soil carbon model with federated learning? OARF shows that horizontal federated learning can be cheap. It also shows that homomorphically encrypted vertical federated learning reaches hundreds of hours of estimated training. The deeper objection is about use. Diagnosing MIMICS and MES-C, and recalibrating them, requires a reusable dataset that many models and analyses can query. Federated training spends privacy budget again for every model. We will still train a differentially private federated neural regressor at the same $\epsilon$ and report its locked-region R² against ours.

Proposed Experiments

Data and partition. We use WoSIS snapshot 2019 profiles with the Wang et al. covariates resampled to about 1 km. We partition them into simulated holders by country, which yields many small holders in Africa and Central and West Asia. WoSIS is public, so the confidentiality is simulated. We say so, and we treat the partition as a stand-in for real locked archives.

First check: does pooling help where data are sparse? We measure locked-region R² and RMSE for the top 30 cm across all baselines, privacy levels and holder-size regimes. This includes a regime that reweights holder sizes toward the extreme imbalance expected for real proprietary data.

Second check: is the scientific signal preserved? We rerun the SHAP and partial dependence analysis on forests trained on each synthetic dataset. Success means cation exchange capacity stays among the top three drivers, as Wang et al. found, and the productivity response keeps its peak-then-decline shape. A dataset that wins on R² but flattens that curve would mislead process-model development, and we would count that as a failure.

Third check: cost. We record server runtime, per-holder upload, multiplicative depth and decryption error as holders, attributes and bins grow. Record-level encryption is the comparison. The prediction is that our server cost stays flat in rows, while record-level cost grows linearly in rows. A secondary demonstration applies the same pipeline to the Central and West Asia emissions inventory sector tables split by country. This only shows the setup transfers to facility-level accounting and is not a claimed result.