Skip to content

Should You Pool Two Datasets? A Privacy Test First

THE ARGUMENT

A compatibility test before joint training is possible, but it buys a threshold verdict, not an error estimate; the price depends on the hypothesis class, from log log m/ε for thresholds to d^3 log m/ε for halfspaces.

On this page

Say two hospitals hold 10,000 records each, want one triage model, but neither will hand over its records first. Most people assume more data is always better; here that reflex can be costly.

Before signing, you lack a yes-or-no on compatibility

Hospitals, banks, small spam teams: all face the same choice. Two datasets together would train a better model, but a contract commits budget, legal review, and machines up front. You learn the data does not fit after the bill is paid. The paper moves that check earlier: a light back-and-forth, before anyone commits, should tell you whether one model can explain both datasets [1]. Two shapes of failure. One site calls an unsolicited promo email spam; the other reserves the word for fraud. Or one site only sees referred patients, so its records are a filtered slice.

Three terms, one plain sentence each. Stack both datasets, let one model label every record, count its fewest errors: that count is opt. The threshold t is the line you draw; opt of 0 means some model gets both sides right, while opt of at least t means every model you allow misses at least t pooled records. The hypothesis class is the menu of models you permit, a cut point on a line or a plane in high dimensions.

Differential privacy is a promise about what a viewer can infer: whatever you send, a message, a count, a verdict, nobody can tell from it whether one specific record sat in your data. The paper needs the two-party version, where every message stays private with respect to the other side's whole dataset, not just the final 0 or 1.

So the question turns narrow. No trusted broker, only messages passing back and forth: how small can t be? A broker could add noise to opt and report it, which gives t of order 1/ε, with no dependence on m or d. Without one, that 1/ε does not survive.

The paper turns a bad fit into a count of deleted records

The formal core fits in one line: opt equals the fewest records you must delete before the rest becomes explainable. That links pooling to error-correcting codes. To force opt of at least t, the pooled data must stay unexplainable after any t-1 deletions; thresholds use repetition, halfspaces an expander code.

The test is a promise problem. opt of 0 means Match; opt of at least t means Far; the middle band, 0 below opt below t, gets no answer. The grey zone is not a soft yes, it is a shrug. The paper fixes success at 0.9, and its lower bounds spend an error budget of 0.1.

Thresholds on a line are the cheap case. With m values in the domain, an interactive protocol reaches t of order log log m/ε, and the lower bound matches up to a log log log m factor. One-way messages only, and the bound jumps to log m/ε. Talking back and forth buys an exponent.

One more split follows. Learning a threshold classifier privately needs Ω(log m/ε) samples, even with a broker; testing needs only O(log log m/ε). Checking whether data fits is exponentially cheaper than fitting it.

Halfspaces in d dimensions cost more: upper O(d^3 log m/ε), lower Ω(d log(m/d)/ε). The exponent on m jumps from log log m to log m. The output is still one bit, yet you pay by d, and the jump starts at d of 2.

Three data shapes, three price lists

Lay the bounds side by side and the bill becomes visible. m counts values in the public domain, d is the dimension, n is the record count per side, ε is the budget; constants are dropped, so these are orders, not coefficients.

Settingt you can promise (upper)t you cannot beat (lower)Dependence on n
Thresholds, interactiveO((log log m/ε)·log(log log m/ε))Ω(log log m/ε)none, once n ≥ t
Thresholds, one message onlyO(log m/ε)Ω(log m/ε)none
Halfspaces in d dimensions (d ≥ 2)O(d^3 log m/ε)Ω(d log(m/d)/ε), needs n ≥ C·m·d·log(m/d)/εmain protocol ignores n
Small data, asking only for a total mismatcht = n, needs n ≥ C/ε^2—t grows with n
Small data, each side sends synthetic dataO((n^2·d·log(2m)/ε)^(1/3))—t grows with n
Trusted brokerO(1/ε)no bound in the paper for this modelnone

Five numbers decide whether a quoted t is real.

  • What is m. It counts values in the public domain, not records; with no m, the upper bound has nothing to stand on.
  • What is d. One dimension and d dimensions are different price lists, and at d of 2 the exponent on m moves from log log m to log m.
  • Is ε the total or per round. The halfspace protocol runs Q = ⌈log_{4/3}|W|⌉ + 2 rounds, each with ε/Q.
  • Is t a verdict line or an error estimate. The protocol answers 0 against at least t; it never estimates opt.
  • Is n large enough. Below d^3 log m/ε the main protocol fails, and you fall back to t = n or to synthetic data.

If you actually run one, follow this order

The order below is my reading of the paper, not a procedure from it. This is theory: no deployment is reported, and no constants are given.

  • Fix t before you discuss ε. t is the error count you can live with, so write it down as a hard line, then look for the row that delivers it.
  • Report m and d. m is the domain size, d is the dimension; if neither is known, you are not ready to test.
  • Pick the mode. Reaching log log m requires questions going both ways; a single one-way message costs log m/ε.
  • Put ε in the contract as the budget for the whole test. Halfspaces split it over Q = ⌈log_{4/3}|W|⌉ + 2 rounds at ε/Q each; thresholds split it over T = O(log log m) queries at ε/(2T) each.
  • Agree on the grey zone. When 0 sits below opt below t, the protocol is silent; go fix labels or sampling, do not raise ε and rerun.
  • Write down the failure rate. The paper's constant is 0.9; wanting more certainty means giving up room on t or on ε.

Where the test gets expensive, and where it does not apply

The hardest limit first: log log m is the optimistic case, and it leans on data sitting in total order along one line. Halfspaces in d dimensions move the exponent on m from log log m to log m and add a factor of d; the d^3 in the upper bound is three bills stacked, for rounds, for container entropy, for Carathéodory's theorem.

Second: sample size. The halfspace protocol needs n of order d^3 log m/ε. Below that it does not hold, and you fall back to t = n (needs n ≥ C/ε^2) or to synthetic data per side (t of order (n^2·d·log(2m)/ε)^(1/3)). On small data, one test is not cheap.

Third: the paper assumes n records per side, a public finite domain X, binary labels, and an m known to both. Unequal counts, continuous features, and multiclass labels sit outside the theorems. Fourth: the privacy is per record, on both sides; it says nothing about hiding the existence of the dataset.

Fifth: bounds like Ω(log log m/ε) are information-theoretic, and they target a setting with no broker and no cryptography. With secure multi-party computation, the paper notes that O(1/ε) is reachable under computational differential privacy, and the lower bound no longer applies. Change the setting and the price list is void.

One line to remember: at the same ε, a threshold buys log log m, while halfspaces in d dimensions cost d^3 log m. That is structure, not a discount.

References

  1. Should We Combine Our Data? Algorithms and Limits for Privately Assessing Data Sharing

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…