Manuscript Offprint
arXiv:2611.03599Should We Combine Our Data? Algorithms and Limits for Privately Assessing Data Sharing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In this paper, we study when two parties should pool their data to train a machine learning model. Two agents, Alice and Bob, each hold a sensitive labeled dataset and want to train a classifier from a given hypothesis class . Even when each party's dataset can be perfectly classified on its own, the two parties may follow conflicting labeling standards or have selection biases that affect their features and label sets, such that no single classifier in fits their combined data. Before committing to data sharing, Alice and Bob therefore want to test whether a single classifier in can jointly fit both datasets—without revealing their individual data points to one another.
We formalize this problem from a learning-theoretic viewpoint via , the minimum number of mistakes made by any hypothesis in on their pooled data. Through interactive communication, the agents must distinguish (compatible datasets) from (conflicting datasets) under pure -two-party differential privacy. A trusted curator could do this with , and we ask how small can be without one. For thresholds on the real line over a domain of size , we show that the optimal is , exponentially smaller than the samples needed to privately learn thresholds, even with a curator. For halfspaces in , the dependence on jumps to : we give a protocol with and show that some domains require .
1 Introduction
Institutions often hold complementary datasets that capture different aspects of the same downstream learning task. For example, a breast screening clinic may hold primarily negative cases, while a specialized diagnostic center may hold a much higher proportion of confirmed cancer cases [LASLBKHOTRM17; SAMHBORLTKLB17]. Similarly, organizations trying to detect cybersecurity incidents frequently share data to provide a comprehensive view of the cybersecurity landscape, as attackers may target different organizations with different exploits at different times [CH23]. In such settings, pooling data may enable institutions to learn a useful classifier that no entity could learn on its own. Indeed, this potential was highlighted and analyzed in early theoretical works on distributed machine learning [BBFM12].
*The starred authors are listed in alphabetical order.
Part of this work was supported by and carried out while Mahdi Haghifam, Giulia Fanti, Kumar Kshitij Patel, and Juba Ziani were visiting the Simons Institute for the Theory of Computing. Juba Ziani was supported by NSF awards 2336236 (CAREER) and 2504990. Giulia Fanti was supported in part by NSF award CCF-2338772 (CAREER).
Realizing the potential benefit of collaboration, however, often requires institutions to commit resources upfront through legal agreements, financial compensation, governance approvals, and dedicated infrastructure. Before incurring these costs, institutions need to assess the utility of combining their datasets: will pooling improve model accuracy or other downstream metrics enough to justify the collaboration? Yet this assessment depends on joint properties of the datasets, generally hidden from each institution's local view. Institutions face a circular dilemma: they must judge whether collaboration is worthwhile before committing, yet doing so may require the very data sharing whose value they seek to assess.
Privacy requirements further complicate this dilemma. Hospitals, for example, must protect sensitive patient records even when sharing them would help evaluate a collaboration. Institutions may also hesitate to disclose valuable data to a prospective partner who could use them independently and decline to collaborate. When no trusted third party is available, each party must therefore assess whether collaboration is promising while limiting what it reveals about its data. This tension between the need to preserve data privacy while enabling agents to assess the utility of collaboration motivates the main conceptual question of this paper: How can agents estimate whether it is beneficial to combine their datasets while preserving the privacy of individual records? What algorithms can achieve this goal, and what are their fundamental limits?
We focus on a basic question that arises before joint training: can a single classifier in a given hypothesis class explain both parties' data? We formalize this question using their joint empirical loss defined as
We use , the number of mistakes made on the pooled data by the best classifier in , to assess the value of combining the data. It is zero when one hypothesis explains both datasets, and large when every hypothesis in makes many mistakes on their union. A large joint loss may indicate conflicting labeling practices, selection biases causing missing features and labels, or that the hypothesis class is not complex enough to fit the combined data.
We therefore focus on distinguishing between the following:
for some . When , Alice and Bob agree to collaborate. When , Alice and Bob must reassess. Finally, if , we make no claims, as is standard in distribution testing. We now present two examples that further motivate the property-testing problem in (2).
Example 1 (Learning from disparate label sets). Suppose Alice is a screening clinician and Bob is a diagnostician. They want to develop a classifier to determine whether a patient in a target population should
¹This could take the form of Alice and Bob realizing they do not have the expertise or computing power to fit a good model, in which case they refuse to collaborate; or, this could mean that Alice and Bob need to reconcile their labeling practices, jointly rectify their selection biases to account for missingness, potentially re-label data, or choose a more complex hypothesis class.
be referred for further diagnostic testing. Their datasets reflect different stages of care: Alice's screening dataset mainly contains records of patients who were not referred, whereas Bob's diagnostic dataset contains only records of patients who were referred and received more thorough testing [GBRRDJM11]. Since the records contain sensitive patient information, neither agent is willing to disclose individual records to assess a possible collaboration, and no trusted third party is available. To isolate this selection bias, suppose Alice's labels are all , and Bob's are all . Then, neither can train a useful model alone; they must assess to determine whether they can train a low-error model on their joint data.
Example 2 (Identifying conflicting labeling practices). Now suppose Alice has labeled spam and non-spam emails in her dataset. However, her data may be limited or imbalanced, so she wants to augment it with Bob's curated, labeled email dataset. The challenge is that Bob may have a different view of what constitutes spam, so his labels could conflict with Alice's data [KCG24]. For example, Alice may label unsolicited promotional emails as spam, while Bob uses that label for fraudulent or malicious messages. Before joint training, Alice wants to know whether a single classifier can achieve a sufficiently low test error under both labeling policies. To isolate conflicting labeling practices, suppose the agents encounter the same distribution of emails but may assign different labels to the same email. In this case, indicates that, under the hypothesis class , Alice's and Bob's labeling practices are compatible, implying a collaboration may be worthwhile. On the other end, points to differing labeling practices.
Remark 1.1 (From in-sample to in-population error). Note that our insights extend beyond the in-sample case and hold when considering generalization error over the underlying population distributions. We provide more details using standard arguments in Appendix A.
1.2 Problem Formalization
In this section, we formalize our problem and state our main technical question. We first consider the disjoint-label setting as in Example 1, where Alice holds only negatively labeled examples, and Bob holds only positively labeled ones. Since the labels are fixed by the party holding each record, we suppress them and write . This setting isolates the joint aspect of the problem: when contains the constant predictors, each local dataset is perfectly realizable, but their union need not be. Thus, the local optimal errors alone do not determine whether a common classifier can explain both datasets. For our algorithms, we later show that they extend to datasets with arbitrary label mixtures (see Corollaries 4.8 and 3.13).
The definition of in Equation (1) in the disjoint-label setting can be rewritten as
To assess a potential collaboration, the agents first agree on an error threshold . They seek a private assessment algorithm that rejects with high probability when every classifier in makes at least mistakes on the pooled data, i.e., . We call this requirement . However, a trivial algorithm that always rejects also satisfies soundness. We therefore also require the algorithm to accept with high probability when the pooled data are jointly realizable, i.e., , a requirement we call completeness. Finally, to protect the privacy of individual records throughout the interaction, we use differential privacy [DMNS06] in its two-party form [BNO08; MMPRTV10], which requires each agent's view to be differentially private with respect to the other agent's dataset (see Definition 2.1). We combine these pieces and formally define the two-party algorithm for dataset valuation as follows:
Definition 1.2 (-DP tester with resolution ). Fix a data space , a hypothesis class , a dataset size , a privacy parameter , and . Let be an almost-surely terminating interactive two-party protocol on all pairs of finite multisets over , with common output in . We interpret these outputs as acceptance or rejection of the proposed collaboration at this preliminary stage, respectively. We call an -private tester with resolution for at dataset size if it satisfies the following requirements:
-
Privacy. satisfies -two-party differential privacy as in Definition 2.1 for every input
-
Soundness. For every s.t. , we have .
-
Completeness. For every , s.t. , we have .
The probabilities are over the protocol's private and public randomness.
We seek the smallest achievable resolution , since smaller values let agents enforce stricter error tolerances. Without privacy constraints, the agents can exchange their datasets and compute exactly, achieving , the best possible resolution. A trusted curator could also ensure differential privacy by releasing , since the joint loss has sensitivity one. This gives a tester with resolution , independent of the dimension and hypothesis class. However, we require information-theoretic two-party differential privacy without a trusted curator. This motivates the main technical question that our paper seeks to answer:
For fixed and , what is the smallest resolution that an -DP private tester can guarantee?
1.3 Our Results
We answer the above technical question for two fundamental classes of hypotheses: thresholds on the real line and half-spaces in . For each class, we establish both upper and lower bounds on the optimal resolution of any -private tester (summarized in Table 1). Notably, our main interactive protocols achieve a resolution that is completely independent of the dataset size , and all of our upper bounds extend immediately from the disjoint-label setting to arbitrary mixed-label datasets (see Corollaries 4.8 and 3.13).
1.3.1 Thresholds on Real Line
We start with the simplest nontrivial class, thresholds on the real line, where each hypothesis labels a point positive exactly when it lies at or above a cutoff :
Our main result for this class is as follows:
Theorem 1.3 (Informal Version of Theorems 3.1 and 3.12). Fix and . For every domain with , provided , there exists an interactive, randomized, and polynomial-time algorithm that is an -DP tester with resolution for . Moreover, for every domain with , every -DP tester with resolution for requires .
Next, we mention a few implications of this result:
-
Minimal overhead compared to the centralized/non-private setting: Recall that a trusted curator achieves resolution for every hypothesis class. In comparison, two-party differential privacy introduces only an dependence on the domain size , negligible in most practical settings.
-
Exponential improvement using an interactive protocol: Interaction is provably required to achieve the near optimal resolution: without interaction, any -private tester requires , yielding an exponential separation between interactive and non-interactive private testing (see Remark 3.4).
-
Exponential separation between private testing and private learning: A natural approach to the testing problem in Equation (3) is to privately learn a good classifier and then privately evaluate its error on each dataset. However, any pure -DP threshold learner, whether proper or improper, requires samples at constant accuracy and confidence, even when a trusted curator holds the pooled data [BNS13; FX14]. In contrast, Theorem 1.3 gives a private tester using only samples, yielding an exponential separation in the dependence on . Qualitatively similar separations arise in non-private settings, where testing or estimating optimal prediction error can require fewer samples or label queries than learning a predictor [KR00; BBBY12; BH18; KV18].
1.3.2 Halfspaces in Higher Dimension
The next fundamental hypothesis class we consider is halfspaces in defined as follows:
Our main result for this class is as follows:
Theorem 1.4 (Informal Version of Theorems 4.1, 4.7 and E.4). Fix , , and . For every domain with , provided , there exists an interactive -DP private algorithm with resolution for .
Moreover, for every sufficiently large and every , there exists a public domain with , chosen only from , such that for every sufficiently small and every with , every -private tester over with resolution requires .
Next, we mention a few implications of this result:
-
Sharp jump in domain-size dependence: Comparing Theorem 1.3 and Theorem 1.4 reveals that, as we move from one-dimensional thresholds () to halfspaces in any fixed dimension for some constant , the dependence of the testing resolution on the domain size jumps exponentially from to . Our lower bound confirms that this dependence is tight up to secondary logarithmic factors in the stated parameter regime.
-
Dimension dependence despite a one-bit output: Our lower bound implies that, even though is a scalar, two-party pure DP testing incurs a resolution error that scales with , whereas a centralized algorithm incurs only . This gap reflects the privacy cost of decentralization, as the agents must replace a trusted curator with a protocol that protects each party's records from the other throughout their interaction.
| Class | Upper bound | Lower bound |
|---|---|---|
| Thresholds in | ||
| Halfspaces in |
Table 1: Bounds on the error gap for pure -two-party DP testing with success probability at least 0.9, up to universal constant factors. The halfspace lower bound holds for some input domains, , , and sufficiently small .
- The privacy cost even with abundant data: Even with arbitrarily large datasets, two-party private testing can require resolution on the same fixed public domain. Thus, increasing the number of records does not eliminate this worst-case cost in absolute resolution, although the corresponding fraction of errors decreases.
Complementary bounds for smaller datasets. An interesting aspect of both of our main results is that the achievable resolution does not depend on . For halfspaces, however, our main tester from Theorem 1.4 provides a nontrivial guarantee only when . For smaller datasets, we complement it with two simple testers whose resolution grows with . The first one is an application of the net mechanism of [BLR13]: each party privately releases a small synthetic dataset, which gives a non-interactive tester with resolution (see Theorem 4.11). The second one targets the coarsest nontrivial resolution, i.e., . It turns out that happens only when Alice and Bob have the same number of records on every ray through the origin, and this can be tested with shared randomness as long as (see Theorem 4.9). Putting the three testers together, for every we get (ignoring smaller logarithmic factors),
The tester is the best of the three when , the synthetic-data tester when , and the geometric protocol for larger ; see Figure 1.
1.4 Technical Overview
In this section, we outline the main ideas behind our lower bounds and private testing algorithms. We first explain in Section 1.4.1 the idea behind our lower bound, which is based on the connection between and error-correcting codes. We then describe in Section 1.4.2, our threshold algorithm which uses private binary search over prefix lengths to compare two ordered blocks of data. Finally, in Section 1.4.3, we explain the ideas behind our algorithm for halfspaces, which is based on the cutting-plane method in the dual space, i.e., classifier space.
1.4.1 Lower Bounds: Coding Against Erasures
Our lower bounds use the connection between information complexity and DP [MMPRTV10]. We consider a communication problem in which Alice and Bob receive secrets in a finite domain , and

Figure 1: Upper and lower bounds on the resolution for private halfspace testing as a function of dataset size , illustrated for (for , hiding constant and factors). Since , the region is trivial; the upper bound (blue) starts at with (Theorem 4.9), transitions to the synthetic-data bound at (Theorem 4.11), and reaches the -independent geometric bound at (Theorem 4.7). The lower bound (orange) starts at (where ) and grows across two regimes (Theorem E.4) before saturating at for (Theorem 4.1).
exchange messages to compute a binary function . For a protocol computing on inputs , let denote its public transcript, including public randomness, exchanged messages, and final output. The protocol's internal information cost is defined as . Intuitively, it measures what the transcript reveals about each input, given the other.
To force a private tester to incur a large information cost, we choose and such that every protocol computing with bounded error has large . To relate the communication problem to our problem, we construct local encoders , producing datasets and that satisfy
Running a private tester with resolution on these datasets therefore yields a bounded-error protocol for . To capture the sensitivity of the encoders to the secrets, we define the encoding diameters for , and write . The delicacy is that we need to design an encoding function that relates the encoding diameters to . Then, we can invoke existing results [MMPRTV10] (also see Lemma 2.2) that show that . Comparing this upper bound with the information required to compute forces to be large. Our encoders upper-bound in terms of the loss gap , turning this requirement into a lower bound on .
To design encoders for Alice and Bob, we link joint empirical loss to robustness against record erasures. For any hypothesis class , equals the minimum number of records that must be removed from the pooled data to make it realizable. Thus, ensuring requires the pooled data to remain non-realizable after removing any set of fewer than records. This suggests using error-correcting codes to make non-realizability robust to erasures while keeping the encoding diameter small. Repetition suffices for thresholds, while our halfspace construction uses an expander code.
For thresholds on a domain of size , Alice and Bob hold inputs . We use the Greater-Than predicate . Alice creates copies of , and Bob creates copies of . The pooled data are realizable when , whereas every threshold misclassifies an entire block when . This gives a loss gap of with encoding diameter . Since Greater-Than has information complexity under a suitable input distribution [BW11], we use prior results connecting DP to information complexity [MMPRTV10] (Lemma 2.2) to compare this lower bound with an privacy bound, yielding .
For halfspaces, Alice and Bob hold vectors , where and is a power of two. Our encoders map these inputs to labeled data points in a public feature domain of size . We use the trace inner-product predicate , whose information complexity is (Lemma B.6). To construct the datasets, we view halfspace consistency as a linear feasibility problem, with classifier parameters as variables and one constraint per labeled record. We use this correspondence in reverse, building an LP and converting its constraints into records. For each , Alice supplies one input-dependent, or private, constraint fixing the LP representation of , and Bob does the same for . The input-independent public constraints force an output variable to equal once the private constraints fix the inputs. They also require , making the LP feasible iff .
To obtain a loss gap of , we could repeat every constraint times, as for thresholds. However, the resulting diameter cancels the dimension factor in the information comparison (see Section 4.1.1). We instead encode and using an expander code with symbols and constant-size checks [FWK05; FMSSW07]. Private constraints fix the codeword symbols, while public constraints enforce the code checks. Our key step shows that, with public constraints enforced, fewer than private deletions cannot change the codewords, even through fractional LP solutions. Indeed, unique-neighbor expansion gives any nonempty set of fewer than deviating symbols a check touching exactly one of them; the unchanged symbols force it back to its original value. Thus, repeating each private constraint times and each public constraint times prevents fewer than record deletions from restoring realizability when . Only private copies affect the diameter, giving . Finally, we represent field elements as polygon vertices in ; restricting each symbol to this polygon lets one supporting inequality fix its value. Together with sparse checks, this keeps the dimension and the universe size . Choosing and applying the information bound yields under the parameter conditions of Theorem 4.1.
1.4.2 Algorithm for Thresholds: A Robust and Private Greater-Than Protocol
We describe the algorithm in the simpler setting where Alice holds only negative records, Bob holds only positive records, and their feature supports are disjoint (Lemma 3.5 handles overlapping supports, and Corollary 3.13 extends the algorithm to mixed labels.) Also, recall that thresholds label points below their respective cutoffs as negative and those at or above as positive (see Equation (4)). For thresholds with and , we reduce the promise problem to comparing two witness blocks of records from the size- datasets (Figure 2). We prove a simple structural result that implies that if , then all of Alice's points are smaller than all of Bob's points, and if , then every retained point of Alice exceeds every retained point of Bob. See Figure 2 for intuition. Therefore, points are sufficient to distinguish between Match and Far. Note that if , both answers can happen, as is standard in distribution testing.
Given this reduction, a natural idea is for Alice and Bob to compare their blocks using a privately chosen

Figure 2: Reduction to witness blocks for thresholds with disjoint supports. Alice retains her largest records, and Bob retains his smallest records. Solid points are retained and used by our algorithm; faded points are discarded and never be used by our algorithm. In Match, Alice's retained block lies entirely below Bob's; in Far, their order is reversed. The illustration uses , , and .
point. Alice applies the exponential mechanism over the full public domain , favoring points near her block's median, and sends her choice to Bob, who privately counts how many of his records fall below it. Selecting among candidates incurs score error . Taking large enough to dominate this error and Bob's counting noise ensures, with constant failure probability, that Alice's choice lies within her block's range and Bob's comparison identifies the correct order. This yields resolution , but leaves a gap with respect to our lower bound.
To compare the blocks with a better dependence on , we build on the standard Greater-Than protocol for comparing two numbers [RY20, Chapter 3]. We adapt its search over prefix lengths to handle blocks of records while preserving privacy. Specifically, we encode each point's rank in the public domain as a binary string of length and organize these strings into a binary trie; see Figure 3. Each node at depth contains the strings sharing a particular prefix of length . When each party holds a single distinct string, their first differing bit determines their order. Their prefixes agree before that bit and disagree from that bit onward, so binary search locates it using prefix-equality tests. At that position, the string with bit 0 precedes the string with bit 1.
For blocks of records, however, the first separation may involve too few points to overcome privacy noise. We therefore search for a depth at which sufficiently many records have left the shared prefix. To measure this, let and contain the records in the respective blocks with prefix , and define and . Since the blocks are strictly ordered, at most one node at each depth contains records from both parties. When this common node exists, is the larger of the two counts of records outside it. As each child contains only records from its parent, cannot increase with depth; consequently, is nondecreasing from to . We can therefore use noisy binary search to find adjacent depths whose values of bracket a target level up to the estimation error, with chosen well above that error.
To estimate without incurring the unwanted cost, we estimate through a small hashed histogram. A direct noisy histogram over all prefixes would incur an error that grows with , but at most prefixes are occupied. The parties therefore use the same public hash into buckets, which keeps distinct occupied prefixes in different buckets with probability at least . They then add Laplace noise to their bucket counts and take the maximum over buckets of the smaller noisy count. With privacy budget per party, this estimates , and hence , to error with failure probability

Figure 3: A binary trie for the ordered witness blocks. A node at depth represents a prefix; and contain the records in Alice's and Bob's blocks with that prefix. Blue and red shading indicate Alice's and Bob's records, respectively, and dashed circles mark the common nodes shared by both. Because the blocks are strictly ordered, at most one node at each depth is common.
at most . The error thus depends logarithmically on and , rather than on the full prefix universe.
These estimates locate a useful depth, but we must still determine which block comes first. If the estimated increase from to is large, the common node at depth splits enough records between its two children to reveal the order. Otherwise, is already of order , while the common node at depth still contains most of each block. The records accumulated outside this node then reveal the order: in Match, Alice's lie to its left and Bob's to its right, with these directions reversed in Far. In both cases, each party computes a comparison statistic from weighted maxima of counts. These statistics have constant sensitivity even when their maximizing prefixes change, and their difference distinguishes the two orders with a margin of . We can therefore add noise without identifying the common prefix itself.
The search uses only adaptive queries. We give each query a privacy budget and a failure budget , leaving half of each party's privacy budget and half of the total failure budget for the final comparison. With these allocations, a margin suffices to dominate the noise in both stages. Taking makes the final comparisons reliable; since , this condition holds when is a sufficiently large constant multiple of . Thus, at constant failure probability, we obtain an -private tester with resolution , independent of the original dataset size , provided .
1.4.3 Algorithm for Halfspaces: Cutting Plane in the Dual Space
For the class of halfspaces in with , our main idea is to move to the dual space, where each classifier is represented by a point . Since only the predictions on the public domain matter, the Sauer–Shelah lemma allows us to restrict attention to a finite public set of candidate classifiers of size at most .
Let and denote the candidates that make at most mistakes on Alice's and Bob's data, respectively. Unlike the ordered witness blocks for thresholds, these sets of low-error classifiers can be very unstructured. Our key observation is that their convex hulls distinguish the two cases. In

Figure 4: The halfspace promise problem viewed in the dual space. Our algorithm works in the dual space and tests which case holds.
Match, the sets share a consistent classifier . In Far, even their convex hulls are disjoint:
To see why, suppose a point belongs to both convex hulls. By Carathéodory's theorem, it is a convex combination of at most low-error classifiers from each party. A convex combination can misclassify a record only if at least one of its constituent classifiers misclassifies that record. Thus, this point would define a classifier with at most mistakes on the pooled data, contradicting Far.
This geometric separation suggests an iterative elimination algorithm, inspired by [BKMS19]. The parties maintain a public set of active candidates. In Far, a hyperplane separates the convex hulls of their remaining low-error classifiers. At least one side of this hyperplane contains at most half of the active candidates. Thus, at least one party has a halfspace cut that retains all of its low-error classifiers while discarding at least half of the candidates.
The next challenge is to choose such a cut privately. Searching directly over all possible halfspace cuts would be costly in terms of privacy. Instead, we use halfspace containers [BKMS19; DGM22] to obtain a small public menu of subsets of the active candidates. Whenever a halfspace contains at most half of the active candidates, one of these containers covers its candidates while containing at most 3/4 of the active set. We can therefore search over this small menu while still eliminating a constant fraction of the candidates.
Alice and Bob use the exponential mechanism with a low-sensitivity cost to select a container or abstain. With high probability, at least one party selects a shrinking container in each Far round, while every selected container preserves in Match. Thus, within rounds, the active set becomes empty in Far and remains nonempty in Match.
Considering all the factors, we can show this algorithm is an -private tester with . Intuitively, the resolution factors as , where arises from splitting the privacy budget across elimination rounds, the second factor of is the entropy of the containers that we need to pay due to exponential mechanism, and the third factor of comes from Carathéodory theorem when relating the global mistake gap to the local error threshold .
1.5 Related Work
Our work lies at the intersection of three lines of research: communication-efficient distributed learning, testing whether a good model exists without learning one, and data valuation.
Distributed Communication-Efficient Learning. A line of work studies communication-efficient distributed learning [BBFM12; CBC16; KLMY19]. Broadly speaking, in the two-party setting, each agent holds a set of labeled examples, and the players communicate to learn a classifier with small error. In much of this work, the algorithms communicate with each other using samples, and the goal is to minimize the number of samples communicated. However, [BBFM12] also propose and analyze the more general setting in which communication can be arbitrary, and the goal is to minimize the total number of bits communicated, possibly subject to privacy constraints. Our setting can be viewed as a property-testing version of the distributed communication-efficient learning problem.
More closely related to our halfspace algorithm is the work of [BKMS19], who study distributed halfspace learning and convex set disjointness over a known finite domain and measure communication in bits. Their goal is to minimize the number of bits exchanged. Our focus is on the smallest resolution for testing whether or under two-party DP. On the technical side, our halfspace algorithm builds on their container approach, using the improved container bounds of [DGM22]. We apply this approach to sets of low-error classifiers in the dual space and select containers privately to eliminate candidates while preserving a shared, consistent classifier when one exists.
Testing and Estimating Learnability. A related line of work asks whether one can test if the optimal population error using classifiers in a hypothesis class is small or large without learning a classifier [BBBY12; KNOW14; BH18; KV18]. In the active testing setting, the learner has access to a large pool of unlabeled samples and chooses which points to label. The goal is to answer this question using as few label queries as possible. A related question with access to i.i.d. labeled samples is studied in [KV18]. Under distributional assumptions, they show that the optimal population loss can be estimated using fewer samples than are needed to learn an accurate predictor. For example, in isotropic regression with suitable moment bounds, they show a quadratic gap in the dependence on dimension: samples suffice to estimate the optimal squared loss to constant accuracy, whereas learning can require samples. They also discuss using such estimates for data valuation and comparing separate and pooled datasets to assess whether joint training is promising.
These works share our goal of assessing prediction error without learning a classifier. They focus on using as few labels or samples as possible to assess population error. Our main constraint is privacy: two agents hold labeled datasets and want to determine whether a single classifier in their hypothesis class fits all the pooled records, or whether every classifier makes at least mistakes. The challenge is to achieve a small resolution while protecting individual records throughout the agents' interaction. We provide upper and lower bounds on that quantify the cost of two-party DP.
Similar to this line of work, our threshold result also distinguishes between private testing and private learning. For fixed fractional empirical testing gap, learning accuracy, and confidence, our tester needs only samples per party, whereas distribution-free pure-private threshold learning requires samples even with a trusted curator.
Data Valuation and Selection. Data valuation supports decisions throughout the machine learning pipeline, from selecting and pricing training data to debugging trained models [WYZKJ24; TLLCJKLR22; KL17]. Popular approaches guide these decisions by assigning scores to individual records or entire datasets using Shapley values or leave-one-out contributions [GZ19; JDWHHGLZSS19; GHVLP24]. These methods must, however, account for non-monotonicity, since adding training data can worsen downstream test performance, including when pooling data from heterogeneous sources [NKBYBS20; CZPR23]. Our opt scenario captures a related obstacle when individually realizable datasets admit no shared classifier that fits both perfectly. For data selection, such non-monotonicity can give adaptive methods a strict advantage over fixed score-based methods under equal value-query budgets [PKFZ26], paralleling the benefit of interaction between agents in private threshold testing noted in Remark 3.4.
Private Data Appraisal and Valuation. Existing private appraisal methods differ in both what they protect and what their assessments establish. Secure-computation methods, for example, estimate learning gains or Shapley values while permitting leakage through the released appraisal [XHV22; TLLCJKLR22]. Differential privacy can address such leakage, but its scope varies across methods. Protocols combining homomorphic encryption with label differential privacy leave features public [ALZK23], while private KNN-based valuation assumes a trusted server and excludes validation-data privacy [WZWJM23]. Similar asymmetries arise in dataset valuation that protects sellers without providing corresponding guarantees for the buyer [JMMC24]. Protecting both sides therefore remains a challenge, as broader analyses of private valuation also emphasize [FWC26]. Beyond these privacy constraints, the assessment itself may not certify compatibility. Similarity-based methods estimate dataset divergence or correlation without establishing whether a shared classifier fits the combined data [FXC25; CPP23; JMMC24]. Likewise, protecting fixed valuation scores does not itself ensure that they identify useful data combinations [PKFZ26]. These limitations leave unresolved the worst-case accuracy limits of compatibility testing under two-party record-level differential privacy without a trusted curator or computational assumptions.
2 Preliminaries
2.1 Notations
For a positive integer , let . The public data domain is denoted by ; when it is finite, we write . For , we write when they are neighboring, meaning that one record is replaced; the corresponding replacement distance is denoted by . For two vectors , we write for the Euclidean inner product, for the convex hull of . Finally, is the mean-zero Laplace distribution with scale .
2.2 Two-Party DP and Connection to Information Complexity
In an interactive protocol, privacy must hold not only for the final Match or Far output, but for the entire interaction transcript observed by each party. For a protocol and inputs , let denote Alice's complete view of the execution, consisting of her input , her private randomness, the public randomness, all exchanged messages, and the common output; define similarly.
Definition 2.1 (Differential privacy for two-party protocols [MMPRTV10]). A two-party protocol is -differentially private if each party's view is -differentially private with respect to the other party's dataset. More precisely, for every fixed , every pair of neighboring datasets , and every measurable event ,
and, symmetrically, for every fixed , every pair of neighboring datasets , and every measurable event ,
We require differential privacy on the full input domain, including inputs that do not satisfy the promise of the testing problem.
We also make a repeated use of this lemma which is a simple modification of the connection between DP and internal information complexity from [MMPRTV10].
Lemma 2.2. Let and be finite sets, and let and be deterministic maps that encode inputs in and as size- datasets over . Define the encoding diameter of and as follows:
Suppose for a distribution over , and Alice and Bob execute an -differentially private protocol on the encoded datasets . Let denote the resulting public transcript (consisting of the public randomness, all exchanged messages, and the final output). Then the internal information cost of (in bits) satisfies
3 Threshold in One Dimension
In this section, we focus on the class of thresholds on real line. In particular, define
First notice that , therefore, the non-vacuous regime for the resolution will be . We first provide an information-theoretic lower bound on for this class, and then present an algorithm that (nearly) matches the lower bound.
3.1 Lower bound for thresholds
The next result presents a fundamental lower bound on for the class of thresholds. The main idea is to embed a binary function with a high information complexity and then use the connection between information complexity and two-view DP from [MMPRTV10] to provide a lower bound.
Theorem 3.1 (Lower bound for thresholds). There exist universal constants and such that the following holds. For every , every with , every , and every such that , we have that every -private tester for with resolution for dataset of size (from Definition 1.2) requires
Remark 3.2. Fix and . Theorem 3.1 implies that no -private tester for thresholds over at dataset size can achieve a resolution . Indeed, restricting such a tester to a finite domain of size would give for arbitrarily large , contradicting the fact that is fixed.
A trusted curator can achieve resolution , independently of the domain size, by adding Laplace noise to the sensitivity-one quantity opt. This resolution is nontrivial provided for a sufficiently large universal constant C. Thus, on finite domains of size m, the two-party setting incurs an unavoidable multiplicative overhead relative to the centralized resolution.
Remark 3.3. Under cryptographic assumptions, secure function evaluation can emulate the trusted curator and achieve with computational differential privacy [MMPRTV10]. However, Theorem 3.1 shows that information-theoretic view-based privacy requires . Thus, the two models exhibit a separation in the achievable promise gap.
Remark 3.4. The lower bound in Theorem 3.1 allows arbitrary interaction between Alice and Bob. For one-way protocols with bounded worst-case error, however, the standard information-theoretic argument underlying the Greater-Than lower bound [RY20, Chapter 6] shows that Alice’s message must reveal bits about her input when it is uniformly random. Indeed, given any prefix of Alice’s input, Bob can choose a comparison that predicts her next bit with constant error; Fano’s inequality and the chain rule then give the information lower bound. Applying this argument to the encoding in Theorem 3.1, group privacy bounds the information revealed by Alice’s message by , yielding . The private-interior-point baseline in Section 3.2.3 achieves the matching resolution. Thus, interaction is necessary to achieve our improved resolution of .
Proof of Theorem 3.1. Without loss of generality write where . Fix an arbitrary integer and let . For , define the size-n multisets
where Alice's records are negatively labeled and Bob's records are positively labeled. Then,
There exists a distribution over such that every protocol computing with error at most has internal information cost [BW11; Vio15]. More precisely, let be a private tester from Definition 1.2. Then, given , run on . By Equation (7), the resulting protocol computes with error at most . Therefore, if consists of the shared randomness, exchanged messages, and common output, then by [BW11; Vio15]. The padding is independent of and , and hence both encoding diameters are at most . By Lemma 2.2, . Then, it follows that , as claimed.
3.2 Algorithm for Thresholds
In this part, we present our algorithm that achieves the lower bound up to factor.
3.2.1 Structural Properties and Binary Trie
First, we introduce a notation: For a multiset of size over a totally ordered domain, write its elements, with multiplicity, as . For , define the multisets of the smallest and largest elements by , and . Now, we are ready to present a structural property.
Lemma 3.5. Let where . Define and . In particular, and add a bit 1 and 0 after the least significant bit of the input, respectively. Let be multisets of size over , let , and write and . Then . Moreover:
-
if , then ;
-
if , then .
Proof. Reading strings as integers, and . Thus both maps are strictly increasing, and their images are disjoint by parity.
At an even threshold , the Alice and Bob errors are, respectively,
which are exactly the errors at threshold s in the original instance. At an odd threshold , the error multisets are
Thus, compared with 2s, the odd threshold makes exactly the same errors except that it may additionally misclassify Bob's records at s. It can therefore never be better than 2s. It follows that the two optimal errors are equal.
If the original instance is realizable, then . So every element of lies below every element of , proving part (i). For part (ii), suppose instead that
Since is odd and is even, we have . At threshold , every Alice error is strictly larger than , so there are at most Alice errors. Likewise, every Bob error is strictly smaller than , so there are at most Bob errors. Therefore,
contradicting the assumption. This proves part (ii).
The lemma reduces the promise problem to a comparison between two extremal blocks. Fix . In the Match case, every point in lies below every point in . In the Far case, their order is reversed: every point in lies above every point in . In particular, being far from realizable creates not merely one misordered pair, but two blocks of records with opposite order. This introduces a stability that we later exploit: the promised cases can be distinguished using robust order statistics rather than the maximum of and the minimum of , which may each depend on a single record.
Remark 3.6. To avoid ties between records owned by different parties, we apply the lifting function and from Lemma 3.5 and suppress the tildes. Since this transformation is local, it entails no loss of generality. Henceforth, we assume that the supports of and are disjoint, so the preceding order comparisons are strict. Without loss of generality to reduce notation clutter, we assume Alice and Bob only use and during the execution of the algorithm. It is easy to see that these subsets also respect the neighboring condition we require for the definition of DP.
Definition 3.7 (Binary Trie and Common Node). Let with . Let be the complete binary trie whose nodes are the binary strings . The depth of a node is its length : the root is the empty string at depth 0, and the leaves are the depth- strings, which we identify with . For each and define and similarly define . Also, we have the convention that and . At depth a node is called common if it contains both Alice and Bob points.
Next lemma shows an important property of the binary trie node, that we use in the sequel to design an algorithm.
Lemma 3.8. Fix and . Let be two sequence of length and assume the promise holds. Recall the definition of the trie node from Definition 3.7. Then, for every given depth , there exists at most on node that contains both Alice and bob's data, i.e., . Also, at depth , we have .
Proof. Under the promise from Lemma 3.5 and Remark 3.6, either or . First, we prove the last claim: by Lemma 3.5 (recall also Remark 3.6), we have that under the promise, the block of Alice and Bob's data are disjoint. For the first claim, we prove by contradiction. Lets assume at depth , there exists two nodes that are both common and denoted by and such that and . Assume without loss of generality that in lexicographic order. Every leaf below is smaller than every leaf below . Choose , , , . It follows that and . If , then , contradicting . If , then , contradicting .
Example 3.9. To gain some intuition, behind how the binary trie structure, consider Figure 3 where it shows . Here, . Note that at depth zero, the single node is always common and the last depth doesn't have any common nodes.
Lemma 3.10 (escaped points). Fix and . Let be two sequence of length and assume the promise holds. Define the function as . Then is a non-decreasing function with and .
Proof. Set , so that . If is a node at depth and is its parent, then and . Hence
Maximizing over gives , and therefore . At the root, , so . At depth , no leaf is common by Lemma 3.8; hence and .
3.2.2 Distributed Private Common-Frequency Estimation
In this section, we describe an algorithm for a problem that we refer to as distributed common heavy hitter. This subroutine later used in our algorithm for the thresholds.
The task is simple: Alice and Bob hold a categorical dataset of size n over a finite universe of size m. Their goal is to estimate the maximum number of points in a shared bucket in the distributed two-party DP case. We propose an algorithm for this task in Algorithm 1.
Algorithm 1 Private Common-Frequency Estimation:
Input: Alice holds , Bob holds ; parameters .
Output: estimate of .
1: .
2: if then
3: , . \quad \triangleright \text{domain already small: no hashing (id}_{[m]} is the identity map)
4: else
5: draw uniformly at random from public coins. \quad \triangleright \text{public hash}
6: Alice releases for all .
7: Bob releases for all .
8: return .
Theorem 3.11 (Private Common-Frequency Estimation). For every , , and , Algorithm 1 is an -two-party differentially private protocol. Moreover, for every pair of inputs , with probability at least , where . In particular,
Proof. For , let
We first prove privacy. For every fixed public hash function , changing one record changes the corresponding hashed histogram in -distance by at most 2. Thus, by Lemma B.1, Alice's release is -DP in , and Bob's release is -DP in . All subsequent computations are post-processing. Therefore, Bob's view is -DP in and Alice's view is -DP in , as required.
It remains to prove accuracy. Let , and we have . If , then is the identity. Otherwise, by a union bound,
On the complementary event, every occupied hash bucket contains records from a single element of . Consequently, . Set . There are independent Laplace variables, each with scale . Hence, by Lemma B.1
On the complementary event, for every , . Taking the maximum over therefore gives . Combining the hashing and noise events proves the stated guarantee.
3.2.3 Main Algorithm
In this section building up on various lemma we proved in the previous two sections, we state the main algorithm and its guarantees. Before, doing it, we discuss a simple baseline that shows why simple idea fails
Simple baseline: private interior point. A natural approach is for Alice to privately select a point lying within the range of her witness block and send it to Bob. Bob can then determine whether his witness block lies above or below this point. We show that this idea already solves the promise problem, but at a cost that our main algorithm improves to . For , define This score has sensitivity one. Moreover, , since every median of has depth at least . Alice applies the exponential mechanism with privacy and score , and sends the resulting point to Bob. The exponential-mechanism guarantee implies that, if , with probability at least , for a sufficiently large universal constant , then and hence . Then, Bob releases and outputs Match if and Far otherwise. It follows that the baseline solves the -promise problem for . The dependence on comes entirely from privately selecting a point from an -element domain. As we will see, our main algorithm improves exponentially over this baseline by avoiding this direct selection by searching over a different object.
Overview of the Technical Ideas of Our Algorithm. In this section, we provide an overview of the ideas in Algorithm 2. We organize the ordered domain as a binary trie as defined in Definition 3.7. The first step is two perform private private binary search in order to find
where defined as . Notice that for every depth , and can be seen as a histogram. The straightforward implementation of DP histogram estimation incurs an error of which can be . The main observation here is that we only need to estimate without estimating the whole histogram. To do so, we develop Algorithm 1 where the main idea is to use public random hashing to design a distributed algorithm with two-view DP guarantee such that the error due to DP to estimate is independent of the domain size.
Once the binary search returns two consecutive depths and , we consider whether the increase from to is large or small. For intuition, suppose first that the common nodes at these depths are known. If the increase is large, then many points leave the common node between depths and . Since , this information is concentrated in a single split, and comparing the numbers of Alice and Bob points in its two children reveals their relative order. To gain intuition behind this case, see Figure 5a. Our algorithm is based on privately finding the orientation of split on Alice and Bob's side and comparing them.
If the increase is small, the information is not concentrated in the final split. Instead, because is already above the noise level, sufficiently many points have accumulated outside the common node by depth H, while the common node itself remains heavy. Under the Match promise, Alice's points outside this node lie to its left and Bob's points lie to its right; under the Far promise, these directions are reversed. To gain intuition see Figure 5b. Thus, comparing the total mass on the two sides reveals the correct answer. The actual implementation is more challenging because the common node depends on the private datasets and cannot be released explicitly; our statistics are designed to recover these two comparisons without identifying it.
Algorithm 2 Data Valuation for Threshold:
Input: Alice holds , Bob holds ; parameters .
Output:
1: , ,
2: .
3: Set , , , and . Initialization of binary search
4: while do Binary search step
5: .
6: Form the prefix datasets
, .
7: . See Algorithm 1
8: if then
9: .
10: else
11: .
12: .
13: if then large-jump case
14: Alice releases
.
15: Bob releases
.
16: else cumulative-escape case
17: Alice releases
.
18: Bob releases
.
19: return Match if ; otherwise return Far.

(a) Large jump case
(b) Small jump case
Figure 5: Intuition behind the two-cases of the second stage of Algorithm 2
Theorem 3.12 (Upper bound for thresholds). There exists a universal constant such that the following holds. Let be a finite ordered domain with , let , let and , and let satisfy
Also, assume . Then (in Algorithm 2) is an -private tester for with resolution with failure probability at most .
Proof. The proof has three parts: private binary search, and then, after that we have two cases, large-jump case and cumulative-escape case.
Step 1: private binary search. The goal of this step is to approximate
Define the following bad event
where are itself random variable denoting the indices chosen by the private binary search step. Also, and deterministic. Then, we write
where the first step is due to the union bound, and the second step is by the law of the total probability, then, in the third step, we use the fact that each execution of the uses a fresh randomness independent of the history of the algorithm to obtain the result.
Notice that the private binary search maintains such that and . Under the event of , we have
Step 2-Case 1: Large Jump. Suppose that . Throughout the proof, we assume we are under in Equation (8). First, we have . Since , we have . Therefore, , so there is a node satisfying . By Lemma 3.8, this is the unique common node at depth .
We next show that the maximization used in this case are attained at the common node. We prove correctness when ; the Far case is symmetric. To show that the argmax is achieved at the common node consider an arbitrary where . Then, for every
where the second step is by , , , and . The last step follows from Equation (9). It shows that assuming the last term is positive and hence is argmax. Similarly it holds for Bob's maximization part. Therefore,
and similarly
Under the Match promise, every Alice point is smaller than every Bob point. Therefore, Alice cannot have a point in while Bob has a point in . Equivalently, . Suppose first that ; the case follows similarly. Since , we must have . Indeed, otherwise the common frequency would remain when passing from depth to depth , contradicting . Therefore, whereas . It follows that
Consequently, the difference between Alice's and Bob's unnoised statistics is
The case follows symmetrically and gives the same lower bound. Thus, under the Match promise, the unnoised statistic has positive margin at least . The final noise is smaller than this margin under the corresponding good event, and hence the algorithm outputs Match.
Under the Far promise, the order is reversed, and the same argument gives a negative margin of magnitude at least . Therefore, the algorithm outputs Far.
For the privacy proof, each maximization has sensitivity at most 7, since changing one record changes the term multiplied by 6 by at most 6 and the remaining count by at most 1. Therefore, the difference of the two maximizations has sensitivity at most 14, and allocating privacy budget to its release requires noise .
Step 2-Case 2: Cumulative Escape. Suppose that . Under , we have . Therefore, by Equation (9),
Since , we have . Therefore, there is a node satisfying . By Lemma 3.8, this is the unique common node at depth . We next show that the maximizations used in this case are attained at . As before, we prove correctness under the Match promise; the Far case follows symmetrically. Consider an arbitrary with . Then
Here we used , , , and . The same argument, with and in place of and , shows that the second maximization is also attained at . The same conclusion holds for Bob. Therefore,
and similarly,
Under the Match promise, every Alice point is smaller than every Bob point. Since contains points from both parties, Alice cannot have a point to the right of , and Bob cannot have a point to the left of . Hence . Moreover, implies
Consequently, the difference between Alice's and Bob's unnoised statistics is
Thus, under the Match promise, the unnoised statistic has positive margin at least . The final noise is smaller than this margin under the corresponding good event, and hence the algorithm outputs Match.
Under the Far promise, the order is reversed, and the same argument gives a negative margin of magnitude at least . Therefore, the algorithm outputs Far.
For the privacy proof, each maximization has sensitivity at most 7, since changing one record changes the term multiplied by 6 by at most 6 and the remaining count by at most 1. Therefore, the difference of the two maximizations has sensitivity at most 14, and allocating privacy budget to its release requires noise .
Corollary 3.13 (Mixed labels for thresholds). There exists a universal constant such that the following holds. Let be a finite ordered domain with , and suppose that each party holds a labeled dataset . Define . Let , and . If
then there exists an -private tester that distinguishes from with failure probability at most .
Proof. For , let and denote the multisets of negative and positive points held by , respectively. For , write . We first observe that
The first inequality holds because each optimizes the threshold error over a subset of the pooled records. For the upper bound, for each pair , let achieve and let be the records it misclassifies, so . Set . Consider any negative point and positive point that do not belong to . If and , then both points are correctly classified by , and hence . Therefore, every surviving negative point is smaller than every surviving positive point, so the records outside are jointly realizable by a threshold. It follows that .
Let . In the Match case, every is zero. In the Far case, the preceding upper bound gives , and hence some is at least . We therefore perform four tests and return Far if any of them returns Far.
The cross-party quantities and are tested using Algorithm 2, with Bob playing the negative-holder role in the second execution. To obtain equal-length inputs, fix public points < and > . In a cross-party test, the negative holder replaces every positive record by , while the positive holder replaces every negative record by . The resulting datasets have size , and their threshold optimum is exactly the corresponding . Indeed, an optimal threshold may be chosen in , in which case all dummy records are classified correctly. This preprocessing is recordwise and therefore maps neighboring labeled datasets to neighboring padded datasets. Notice that the enlarged domain has size .
For a same-party quantity , replacing one labeled record changes the error of every threshold by at most one, and hence has sensitivity one. Party releases and returns Far precisely when . This release is -differentially private and distinguishes from with failure probability at most , provided that .
We run the two cross-party testers with parameters and allocate the same privacy and failure budgets to the two same-party tests. By composition, the resulting protocol is -two-party differentially private, and by a union bound its failure probability is at most . After increasing the universal constant , the assumptions of the corollary ensure that satisfies the conditions of Theorem 3.12 with domain size and parameters . This proves the result.
4 Halfspaces in High Dimensions
In this part we focus on the halfspace in high dimensions. More precisely, . Also, without loss of generality, we assume Alice and Bob add a dummy dimension to their datapoints and therefore we can represent the class of halfspaces with
4.1 Lower bound for half spaces
In this section, we prove an information-theoretic lower bound for . The argument for the lower bound is rather technical and it involves many steps. We first provide an overview of the proof and defer the formal proof to Appendix in Section D. In this informal overview, we only focus on the case of large , i.e., to highlight main ideas. With slight modifications, we can extend the lower bound to all values of as shown in Section E and Theorem E.4.
4.1.1 Overview of the lower bound proof
The proof follows the same template as that of Theorem 3.1. We take a binary predicate with high information complexity and embed it into the promise problem, so that the verdict of the promise problem determines the value of the predicate, and then derive the lower bound from the connection between DP and information complexity from [MMPRTV10]. For half spaces, however, constructing an embedding with a sufficiently large gap is substantially more delicate.
Our starting viewpoint is that each of Alice’s and Bob’s data points may be read as a linear constraint on , namely or . Viewed in the dual space, the problem therefore becomes a linear program with finitely many constraints: in the Match case the system is feasible, whereas in the Far case it remains infeasible even after removing any of the constraints. Achieving this robustness in the Far case is the main technical difficulty of the proof, and it is what leads us to use error-correcting codes.
Step 1: from inner product in a finite field to LP constraints. Let be an integer determined later and . Alice holds a secret and Bob holds a secret , and they wish to compute
can be thought of as the trace of an inner product over . The internal information complexity of computing is ; for completeness we provide a proof in Lemma B.6. We now build a linear program whose feasibility decides Equation (11). The main challenge here is that the computation in Equation (11) consists of non-linear components over while we want to convert it to a feasibility problem in . To do so, we embed the elements of as the vertices of a convex polygon lying on a parabola (so each symbol uses two real coordinates) and represent each finite-field relation by the convex hull of its satisfying assignments (for details see Figure 6). The resulting LP constraints come in two kinds: A public family, known to both parties and independent of and , performs the computation itself: it holds the variables in the right ranges, forms the trace products, and accumulates their parity, with one last row requiring the parity to be zero. A private family encodes Alice's and Bob's secrets: each coordinate of and contributes exactly one constraint, which we call a pin (the naming is inspired by our way of converting elements of into a linear program in Figure 6). Once all of these are present, the fixed rows propagate the computation and the program is feasible if and only if . We give the details of constructing such a program in Section D. Reading this back through Definition 1.2, we obtain a Match instance whenever and a Far instance whenever . This feasibility equivalence alone certifies only a Far gap of one. Repeating each linear constraint times guarantees , but the encoding diameter of Lemma 2.2 rises to . Then, by the connection of the IC and encoding diameter from Lemma 2.2, we obtain only . The shortcoming of the simple repetition is that the Far gap grows only with the replication , while the diameter grows with . Can we instead design a program that is already robust to deleting of its private pins (i.e., erasing symbols) before any replication?
Step 2: turning code robustness into LP rigidity. What we need is that, as long as the public constraints remain enforced, removing fewer than pins still leaves the final answer intact. We therefore encode and using a public systematic linear code with generator where . Let and ; since the code is systematic, the first coordinates of and are and themselves, so the trace products of Equation (11) are still formed from these coordinates alone. Three properties are needed from the code and its parity-check representation: constant rate, so that ; linear LP-erasure rigidity, meaning the LP tolerates up to removed pins; and constant check degree, for a reason that will become clear below.
The key subtlety is that local parity-check constraints only enforce a convex relaxation of the code, which can admit fractional solutions even when the code has large minimum distance. We therefore use a code whose parity-check graph is a constant-degree unique-neighbor expander [FWK05]: whenever fewer than pins are removed, any nonempty set of unpinned coordinates has an adjacent check touching it in a single coordinate, whose remaining pinned coordinates force that variable back to its true symbol (Lemma C.2). Thus the public constraints still uniquely force and . Two counts govern the size of the construction, and separating them is what makes a large alphabet affordable. First, since each symbol is embedded in , the program uses variables (2K per codeword, trace, and parity variables), independent of , allowing us to choose . Second, each distinct LP inequality corresponds to a point in the public data space of size . Because each check involves only symbols, its convex hull in is described by inequalities; across all checks and computation gates, this yields at most distinct records for universal constants (replication increases multiplicities, not distinct records). The alphabet therefore costs records but never dimensions, which is what will let us take large.
Step 3: producing the Far gap
Converting each LP inequality into a labeled data point, we repeat each private pin times and each public constraint times. When , all constraints are simultaneously satisfiable. When , removing fewer than constraints leaves at least one copy of every public constraint intact and removes all copies of fewer than private pins; by Step 2, the remaining LP remains infeasible. Hence
For a hypothetical -tester, take and , which guarantees a Far gap of at least . Since only the private pins depend on each party's secret, the encoding diameter is (as ). The information lower bound and Lemma 2.2 then give
which forces for sufficiently small . Finally, we choose and the largest power of two satisfying for a universal constant . This keeps the number of distinct records at most and gives , yielding . Moreover, when , the total number of repeated records is , which fits within datasets of size after padding with input-independent records.
Theorem 4.1 (Lower bound for halfspaces). There are universal constants and such that, for every with and , there is a public domain with such that for every , every integer , and every resolution , an -private tester for at dataset size over must satisfy
The domain is chosen independently of .
Proof. Take the fixed domain from Lemma E.3, and let be its largest block length. Let be the constants in Lemma E.1. Among powers of two , choose the largest satisfying
For sufficiently large, is admissible. Every such alphabet is included in , since . Put . Maximality gives
Taking logarithms and using shows that . The reverse bound follows from (12) and , so .
By Lemma E.1, the construction at scale forces whenever , for universal . The returned alphabet satisfies
for a sufficiently large universal . Thus the assumed sample size suffices, with each dataset padded to exactly as in Lemma E.1. Since and , we obtain the claimed lower bound.
Remark 4.2. The surprising behavior of this lower bound compared to the optimal gap for thresholds in Theorems 3.1 and 3.12 is that the dependence on is exponentially larger, i.e., for threshold and for half spaces. Also, exhibits (at least) a linear dependence on .
4.2 Algorithm for Half Spaces
4.2.1 Structural Results and Tools
As our lower bound in Theorem 4.1 shows we need to assume that is a finite set. Let . Towards developing our algorithm, we mainly focus on the dual space: consider the dual space denoted by where we map each to .
The cardinality of is unbounded. However, we only need to consider the projection of using , which means that two are equivalent if and only if the predictions of and over be the same. The next lemma shows that considering this equivalent class, we can reduce to a discrete set. The proof is an application of Sauer–Shelah lemma [Sau72; She72].
Lemma 4.3 (Finite dual discretization). Let . There exists a finite set such that, for every , some satisfies for every . Moreover, .
For each , define the local error of on Alice and Bob datasets as
and using this notation, we have . For every , we also define the set of local low-error classifiers on Alice and Bob's side as
Note that and as sets live in the dual space. Also, since is a finite set, these sets are generally non-convex in . However, when we consider the convex hull of them, we have an important property.
Lemma 4.4. Fix , datasets , and . Suppose that . Then, for every satisfying , we have .
Proof. Suppose toward a contradiction that there exists . By Carathéodory's theorem Lemma B.3, there exist , where , such that is a convex combination of . If misclassifies a point in , then at least one also misclassifies that point. Consequently,
Applying the same argument to a representation of as a convex combination of at most points from gives . Therefore,
contradicting .
Our algorithm employs a geometric tool that is called container. It is a special case of the cover where we also assume that the cover includes the set. We use the following result from [BKMS19; DGM22].
Lemma 4.5 (Halfspace containers [BKMS19; DGM22]). There exists a universal constant such that the following holds. For every finite set and every , there exists a family satisfying . Moreover, for every affine halfspace , there exists such that
Remark 4.6. An special case of Lemma 4.5 that will be used in the sequel is as follows: consider a half space whose positive region is less than the whole space, i.e., . Then, from , we have . Therefore, we have .
4.2.2 Main Algorithm
In this section, we present the algorithm for half spaces. We begin with providing an overview of the technical ideas.
Overview of the algorithm. Our algorithm is a private elimination procedure over the finite dual space . At round , the parties maintain a public set of candidate halfspaces and attempt to replace it by a substantially smaller set. Ideally, a party would find a halfspace in the dual space that contains all of its low-error candidates but at most half of . Such a halfspace defines a safe cut, but the family of possible halfspaces is too large to search privately. The container lemma in Lemma 4.5 replaces these halfspace cuts by a small public family: whenever such a halfspace exists, the family contains a set covering it and containing at most candidates.
For , let denote the candidates in with local error at most . We assign each container a low-sensitivity cost measuring the quality of the best halfspace candidate it excludes; its cost is zero exactly when it contains all of . Alice and Bob can therefore use the exponential mechanism to privately search the public container family for a safe shrinking cut.
The high level goal is as follows: The two promise cases interact with this mechanism in opposite ways, and the stopping rule reads off which occurred: a Match instance keeps nonempty forever, while a Far instance is driven to within rounds, thanks to Lemma 4.3 that shows is finite.
Far case. By Lemma 4.4, and are disjoint. A separating hyperplane therefore places one party's low-error region in a halfspace containing at most half of . By Lemma 4.5, that party has a zero-cost real container of size at most in the public menu. On a high-probability good event that we define later, each party selects a real container, not necessarily the particular zero-cost one. Since every real member of the menu has size at most , the active set shrinks by a constant factor. See Figure 4.
Match case. Here the mechanism above can fail: the two low-error regions may overlap and be scattered across , so neither is guaranteed to lie in a halfspace holding at most half the candidates. We therefore add a dummy action to the menu, which proposes no cut and lets a party abstain when no safe container exists; both parties abstaining is the protocol's signal to output Match. The cost of is fixed at , wedged between the cost of a safe container (0) and that of any container excluding a consistent classifier ( ). This calibration makes abstention the preferred move exactly when no safe cut exists. Concretely, fix a classifier consistent with both datasets. On a high probability event, that we define in the proof, each party either selects or selects a real container that still contains , since any container excluding costs at least . If both select the protocol outputs Match; otherwise survives into . If the protocol reaches the step, then the resulting active set is not empty since it contains . See Figure 4.
Algorithm 3 Data Valuation for Half Spaces:
Input: Alice holds , Bob holds ; parameters .
Output: Far or Match.
1:
2:
3: is a universal constant.
4: see Lemma 4.4.
5: .
6: for do
7: Construct container family and define the public menu
.
8: For and , define See Lemma 4.5
9: Alice samples and releases it. See Lemma B.4
10: Bob samples and releases it. See Lemma B.4
11: if then
12: return Match
13: if then
14:
15: else if and then
16:
17: return Far if ; otherwise return Match.
Theorem 4.7. Let be a universal constant. Fix a finite data space with , and let , , and . Let
then in Algorithm 3 is an -private tester for the -promise problem over with success probability at least .
Proof. The privacy proof is straightforward: in each round, Alice and Bob use exponential mechanism with . The maximum number of rounds is , therefore, the composition theorem of pure-DP shows that the output satisfies two-view DP. Next we turn to the utility proof.
First, we define an event and then the rest of the analysis is based on assuming the event holds. For and , lets define an event that shows the protocol reaches round and the exponential mechanism is accurate. More precisely,
Then define
Thus, on , every exponential-mechanism call that is actually executed has additive cost error at most . It is easy to see that by the union bound and Lemma B.4, we have . For the rest of the proof, we assume holds.
Case 1: Far holds. We first assume that . Consider any round reached by the protocol with . Since , Lemma 4.4 gives .
If both low-error sets are nonempty, strict separation gives opposite affine halfspaces containing and , respectively. We may perturb the separating hyperplane so that its boundary avoids the finite set . The two halfspaces then partition , and one contains at most points. Thus, for some , there is an affine halfspace such that and .
By Lemma 4.5, there is a container containing and satisfying . Hence , , and therefore . On the event , the container released by party consequently satisfies . Since , it follows that . Thus, the protocol cannot return Match in this round.
The protocol therefore either returns Far because the active set is empty or replaces by a real member of . In the latter case, . Consequently, if the protocol completes all rounds, then , where the last inequality follows from . Since is finite, we must have , and the protocol returns Far.
Case 2: Match holds. Assume that , and fix such that . We claim that if the protocol reaches round without having already returned Match, then . The claim holds initially because .
Suppose that . For each , since and , the event implies that , where the last inequality follows from . However, every real container excluding has . Thus, every real container released by either party contains .
If both parties release , the protocol correctly returns Match. Otherwise, is one of the released real containers and therefore contains . This proves the claim by induction. Consequently, the active set never becomes empty. If the protocol does not terminate earlier, then , and the protocol returns Match after the final round.
Combining the two cases, the protocol is correct whenever holds. Since , its success probability is at least .
Corollary 4.8 (Mixed labels for halfspaces). Let be the universal constant in Theorem 4.7. Fix a finite data space with , and suppose that each party holds a labeled dataset . Define . Let , , and . If
then Algorithm 3, after redefining the local error as , is an -private tester that distinguishes from with success probability at least .
Proof. The finite dual discretization is unchanged, since it depends only on the predictions over . Redefine . To verify Lemma 4.4, suppose that . By Carath'edory's theorem, write for some and . If misclassifies a labeled record, then at least one also misclassifies it. Therefore, . The same argument gives , and hence, for ,
contradicting the Far assumption. Thus, the utility proof of Theorem 4.7 applies unchanged.
Finally, replacing one labeled record changes by at most one for every , so retains sensitivity one. Therefore, the same exponential-mechanism and composition arguments give -two-party differential privacy.
4.2.3 Complementary bounds for small data regime
An interesting aspect of the guarantee in Theorem 4.7 is that does not depend on the dataset size . However, the cost of such a result is that we need . In this section, we show that when is small, there are simple algorithms that extend the private tester to almost all non-trivial dataset sizes.
A tester with . In this section, we give a simple algorithm to show that, as long as , we can design a tester that achieves . Note that this is the largest resolution one can ask for: classifier labels every point as positive and makes exactly mistakes, and therefore for all datasets.
The starting point is a simple characterization of when . Note that we assume the homogeneous halfspaces in Equation (10) without a bias term. For , let denote the ray through , and let be the set of rays that contain at least one point of the domain. Since the domain is finite, this set is well-defined. Notice that is public.
For every , let and denote the number of Alice's and Bob's records that lie on , respectively. The main observation is that a homogeneous halfspace assigns the same label to all the points on a ray. Using this observation, it is straightforward to see that
In other words, in the Far case Alice and Bob have exactly the same histogram over the rays, while in the Match case their histograms have disjoint supports. Therefore, at the testing problem reduces to checking whether two histograms over are identical, and this can be done using shared randomness as we show in Algorithm 4. The next theorem summarize the privacy and utility guarantee of this tester.
Algorithm 4 Testing at Resolution for Half Spaces:
Input: Alice holds , Bob holds ; parameter .
Output: Far or Match.
1: Let be a large enough constant, and set .
2: Draw independent and uniform signs for and . public randomness
3: Alice computes for every , and releases
4: Bob computes for every , and releases
5: if then
6: return Match
7: else
8: return Far
Theorem 4.9. There exists a universal constant such that the following holds. Fix a finite data space and , and let . Then there exists a non-interactive algorithm (presented in Algorithm 4) that is -private tester with resolution for .
Remark 4.10 (Mixed labels). Our tester at resolution also applies when each agent holds both positive and negative examples. We retain the assumption that , and write for the total number of negatively labeled records across the two datasets. Unlike the disjoint-label setting, this number need not equal . We first observe that the all-positive classifier makes exactly mistakes. Thus, in the Far case, we must have . This suggests a simple first step: each agent releases a noisy count of its negative records, and the agents add these counts. If < , this already distinguishes the input from Far, using the threshold . It remains to handle the case in which there are at least negative records.
For this case, we modify the random signs used by the tester. Independently for each line through the origin meeting , we assign a random sign to one ray and the opposite sign to the other. Let denote the sign assigned to ray . Each agent releases a noisy version of
and the agents add their releases. Thus, the contribution of a record depends on both its ray and its label.
The main observation is that these contributions cancel in the Far case. Indeed, when opt = , every normal orthogonal to no domain point gives exactly errors. Moving the normal across the hyperplane perpendicular to one line shows that the positive-label count minus the negative-label count must agree on its two rays. Since these rays receive opposite signs, their contributions sum to zero.
In the Match case, consider a line containing a negative record. A classifier realizing the pooled data must place all negative records on this line on one ray and all positive records on the opposite ray. Consequently, multiplying by the labels makes all contributions from this line have the same sign. Since the signs on different lines are independent, the pooled sketch has variance at least . The same moment argument as before therefore gives a sketch of magnitude at least with constant probability.
We repeat the sketch a constant number of times. Replacing one labeled record changes each sketch by at most two and the negative-label count by at most one, so Laplace noise of scale suffices for privacy. Combining the count test with the sketches gives an -private tester whenever , for and a universal constant , independently of and .
A tester using private synthetic data generation. A simple application of the mechanism in [BLR13] gives a complementary bound with a better dependence on the dimension. The idea is to have each party privately release a small synthetic dataset that approximates its empirical error for every halfspace. Then, using it, we can approximate opt.
Theorem 4.11 (Halfspace testing via the BLR net mechanism). There exists a universal constant such that the following holds. Fix , , and . For every public data space with and every satisfying
there exists a non-interactive, randomized, -two-party DP tester for with resolution .
Remark 4.12. At first glance, the dependence on , , and in Theorem 4.11 scales as , which might appear to contradict our lower bound of from Theorem 4.1. However, there is no contradiction because the bound in Equation (15) also depends on and can be written as a weighted geometric mean of and :
Recall that any non-trivial tester requires (since holds trivially for all datasets of size ). For the right-hand side of Equation (15) to be at most , we must have . In this regime, the geometric mean always lies between and , namely
Conversely, when , the right-hand side of Equation (15) exceeds , so the range of admissible in Theorem 4.11 is empty. Thus, whenever Theorem 4.11 is non-vacuous, its resolution is always consistent with Theorem 4.1.
Acknowledgment
Mahdi Haghifam would like to thank Alireza Fallah and Adam Smith for discussions on this project.
AI Disclosure
GPT-5 and GPT-6 were used to explore ideas for proving lower bound for halfspaces in Theorem 4.1. Authors also used AI tools for generating the figures in the paper as well as polishing, editing, and proof-reading.
References
[ALZK23] H. J. Asghar, Z. Lu, Z. Zhao, and D. Kaafar. "Practical, private assurance of the value of collaboration via fully homomorphic encryption". arXiv preprint arXiv:2310.02563 (2023).
[BBBY12] M.-F. Balcan, E. Blais, A. Blum, and L. Yang. "Active property testing". In: 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science. IEEE. 2012, pp. 21–30.
[BBFM12] M. F. Balcan, A. Blum, S. Fine, and Y. Mansour. "Distributed learning, communication complexity and privacy". In: Conference on Learning Theory. JMLR Workshop and Conference Proceedings. 2012, pp. 26–1.
[BBL03] O. Bousquet, S. Boucheron, and G. Lugosi. "Introduction to statistical learning theory". In: Summer school on machine learning. Springer, 2003, pp. 169–207.
[BH18] A. Blum and L. Hu. "Active tolerant testing". In: Conference On Learning Theory. PMLR. 2018, pp. 474–497.
[BKMS19] M. Braverman, G. Kol, S. Moran, and R. R. Saxena. "Convex set disjointness, distributed learning of halfspaces, and LP feasibility". arXiv preprint arXiv:1909.03547 (2019).
[BLR13] A. Blum, K. Ligett, and A. Roth. "A learning theory approach to noninteractive database privacy". Journal of the ACM (JACM) 60.2 (2013), pp. 1–25.
[BNO08] A. Beimel, K. Nissim, and E. Omri. "Distributed private data analysis: Simultaneously solving how and what". In: Annual International Cryptology Conference. Springer. 2008, pp. 451–468.
[BNS13] A. Beimel, K. Nissim, and U. Stemmer. "Private learning and sanitization: Pure vs. approximate differential privacy". In: International Workshop on Approximation Algorithms for Combinatorial Optimization. Springer. 2013, pp. 363–378.
[BW11] M. Braverman and O. Weinstein. "A Discrepancy Lower Bound for Information Complexity". CoRR abs/1112.2000 (2011).
[Car07] C. Carathéodory. "Über den Variabilitätsbereich der Koeffiziente von Kraftwerkreihen, die gegebene Werte nicht nehmen". Mathematical Annals 64.1 (1907), pp. 95–115.
[CBC16] S.-T. Chen, M.-F. Balcan, and D. H. Chau. "Communication efficient distributed agnostic boosting". In: Artificial Intelligence and Statistics. PMLR. 2016, pp. 1299–1307.
[CH23] K. Chang and H. Huang. "Exploring the management of multi-sectoral cybersecurity information-sharing networks". Government Information Quarterly 40.4 (2023), p. 101870.
[CPP23] R. B. Christensen, S. R. Pandey, and P. Popovski. "Semi-Private Computation of Data Similarity with Applications to Data Valuation and Pricing". IEEE Transactions on Information Forensics and Security 18 (2023), pp. 1978–1988.
[CZPR23] R. Compton, L. Zhang, A. Puli, and R. Ranganath. "When More is Less: Incorporating Additional Datasets Can Hurt Performance By Introducing Spurious Correlations". In: Proceedings of the 8th Machine Learning for Healthcare Conference. Vol. 219. Proceedings of Machine Learning Research. PMLR, 2023, pp. 110–127.
[DGM22] K. Dutta, A. Ghosh, and S. Moran. "Uniform Brackets, Containers, and Combinatorial Macbeath Regions". In: 13th Innovations in Theoretical Computer Science Conference (ITCS 2022). Ed. by M. Braverman. Vol. 215. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022, 59:1–59:10. ISBN: 978-3-95977-217-4.
[DMNS06] C. Dwork, F. McSherry, K. Nissim, and A. Smith. "Calibrating noise to sensitivity in private data analysis". In: Theory of cryptography conference. Springer. 2006, pp. 265–284.
[FMSSW07] J. Feldman, T. Malkin, R. A. Servedio, C. Stein, and M. J. Wainwright. "LP decoding corrects a constant fraction of errors". IEEE Transactions on Information Theory 53.1 (2007), pp. 82–89.
[FSBG09] M. F. Flanagan, V. Skachek, E. Byrne, and M. Greferath. "Linear-programming decoding of nonbinary linear codes". IEEE Transactions on Information Theory 55.9 (2009), pp. 4134–4154.
[FWC26] Y. Fu, T. Wang, and V. Chandrasekaran. "Challenges in Enabling Private Data Valuation". arXiv preprint arXiv:2603.00342 (2026).
[FWK05] J. Feldman, M. J. Wainwright, and D. R. Karger. "Using linear programming to decode binary linear codes". IEEE Transactions on Information Theory 51.3 (2005), pp. 954–972.
[FX14] V. Feldman and D. Xiao. "Sample complexity bounds on differentially private learning via communication complexity". In: Conference on Learning Theory. PMLR. 2014, pp. 1000–1019.
[FXC25] K. Fuentes, M. Xu, and I. Y. Chen. "Dataset-to-Dataset Evaluation Before (and Without) Sharing Data". In: Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society. Vol. 8. 1. 2025, pp. 963–977.
[GBRRDJM11] J. A. de Groot, P. M. Bossuyt, J. B. Reitsma, A. W. Rutjes, N. Dendukuri, K. J. Janssen, and K. G. Moons. "Verification problems in diagnostic accuracy studies: consequences and solutions". Bmj 343 (2011).
[GHVLP24] F. Garrido-Lucero, B. Heymann, M. Vono, P. Loiseau, and V. Perchet. "DU-Shapley: A Shapley Value Proxy for Efficient Dataset Valuation". In: Advances in Neural Information Processing Systems. Vol. 37. 2024.
[GZ19] A. Ghorbani and J. Zou. "Data Shapley: Equitable Valuation of Data for Machine Learning". In: Proceedings of the 36th International Conference on Machine Learning. Vol. 97. Proceedings of Machine Learning Research. PMLR, 2019, pp. 2242–2251.
[JDWHHGLZSS19] R. Jia, D. Dao, B. Wang, F. A. Hubis, N. Hynes, N. M. Gürel, B. Li, C. Zhang, D. Song, and C. J. Spanos. "Towards Efficient Data Valuation Based on the Shapley Value". In: Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics. Vol. 89. Proceedings of Machine Learning Research. PMLR, 2019, pp. 1167–1176.
[JMMC24] T. Jahani-Nezhad, P. Moradi, M. A. Maddah-Ali, and G. Caire. "Private, Augmentation-Robust and Task-Agnostic Data Valuation Approach for Data Marketplace". arXiv preprint arXiv:2411.00745 (2024).
[KCG24] J.-C. Klie, R. E. d. Castilho, and I. Gurevych. "Analyzing dataset annotation quality management in the wild". Computational Linguistics 50.3 (2024), pp. 817–866.
[KL17] P. W. Koh and P. Liang. "Understanding Black-box Predictions via Influence Functions". In: Proceedings of the 34th International Conference on Machine Learning. Vol. 70. Proceedings of Machine Learning Research. PMLR, 2017, pp. 1885–1894.
[KLMY19] D. Kane, R. Livni, S. Moran, and A. Yehudayoff. "On communication complexity of classification problems". In: Conference on Learning Theory. PMLR. 2019, pp. 1903–1943.
[KNOW14] P. Kothari, A. Nayyeri, R. O'Donnell, and C. Wu. "Testing surface area". In: Proceedings of the twenty-fifth annual ACM-SIAM symposium on Discrete algorithms. SIAM. 2014, pp. 1204–1214.
[KR00] M. Kearns and D. Ron. "Testing Problems with Sublearning Sample Complexity". Journal of Computer and System Sciences 61.3 (2000), pp. 428–456.
[KV18] W. Kong and G. Valiant. "Estimating learnability in the sublinear data regime". Advances in Neural Information Processing Systems 31 (2018).
[LASLBKHOTRM17] C. D. Lehman, R. F. Arao, B. L. Sprague, J. M. Lee, D. S. M. Buist, K. Kerlikowske, L. M. Henderson, T. Onega, A. N. A. Tosteson, G. H. Rauscher, and D. L. Miglioretti. "National Performance Benchmarks for Modern Screening Digital Mammography: Update from the Breast Cancer Surveillance Consortium". Radiology 283.1 (2017), pp. 49–58.
[McM70] P. McMullen. "The maximum numbers of faces of a convex polytope". Mathematika 17.2 (1970), pp. 179–184.
[MMPRTV10] A. McGregor, I. Mironov, T. Pitassi, O. Reingold, K. Talwar, and S. Vadhan. "The Limits of Two-Party Differential Privacy". In: Proceedings of the 51st Annual IEEE Symposium on Foundations of Computer Science. 2010, pp. 81–90.
[MT07] F. McSherry and K. Talwar. "Mechanism design via differential privacy". In: 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS'07). IEEE. 2007, pp. 94–103.
[NKBYBS20] P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever. "Deep Double Descent: Where Bigger Models and More Data Hurt". In: International Conference on Learning Representations. 2020.
[PKFZ26] K. K. Patel, S. P. Karimireddy, R. C. Fernandez, and M. Zampetakis. "Limits and Potential of Score-Based Data Valuation: Redundancy, Complementarity, and Non-Monotonicity". In: Advances in Neural Information Processing Systems. Accepted. 2026.
[RU08] T. Richardson and R. Urbanke. Modern Coding Theory. Cambridge: Cambridge University Press, 2008.
[RY20] A. Rao and A. Yehudayoff. Communication Complexity and Applications. Cambridge University Press, 2020.
[SAMHBORLTKLB17] B. L. Sprague, R. F. Arao, D. L. Miglioretti, L. M. Henderson, D. S. M. Buist, T. Onega, G. H. Rauscher, J. M. Lee, A. N. A. Tosteson, K. Kerlikowske, C. D. Lehman, and Breast Cancer Surveillance Consortium. "National Performance Benchmarks for Modern Diagnostic Digital Mammography: Update from the Breast Cancer Surveillance Consortium". Radiology 283.1 (2017), pp. 59–69.
[Sau72] N. Sauer. "On the density of families of sets". Journal of Combinatorial Theory, Series A 13.1 (1972), pp. 145–147.
[She72] S. Shelah. "A combinatorial problem; stability and order for models and theories in infinitary languages". Pacific Journal of Mathematics 41.1 (1972), pp. 247–261.
[TLLCJKLR22] Z. Tian, J. Liu, J. Li, X. Cao, R. Jia, J. Kong, M. Liu, and K. Ren. "Private Data Valuation and Fair Payment in Data Marketplaces". arXiv preprint arXiv:2210.08723 (2022).
[Vio15] E. Viola. "The communication complexity of addition". Combinatorica 35.6 (2015), pp. 703–747.
[WYZKJ24] J. T. Wang, T. Yang, J. Zou, Y. Kwon, and R. Jia. "Rethinking Data Shapley for Data Selection Tasks: Misleads and Merits". In: Proceedings of the 41st International Conference on Machine Learning. Vol. 235. Proceedings of Machine Learning Research. PMLR, 2024, pp. 52033–52063.
[WZWJM23] J. T. Wang, Y. Zhu, Y.-X. Wang, R. Jia, and P. Mittal. "A Privacy-Friendly Approach to Data Valuation". In: Advances in Neural Information Processing Systems. Vol. 36. 2023.
[XHV22] X. Xu, A. Hannun, and L. Van Der Maaten. "Data appraisal without data sharing". In: International Conference on Artificial Intelligence and Statistics. PMLR. 2022, pp. 11422–11437.
A On the in-population error induced by OPT
The joint empirical loss opt can be directly linked to an in-distribution loss. Suppose the agents want to minimize the loss with respect to a target distribution . We define the minimal population error on this distribution for a hypothesis class as follows:
Clearly, if the agents require target population error at most , then implies that no shared classifier in , including the Empirical Risk Minimizer (ERM) on their joint data, can satisfy them. In the following remark, we highlight how distinguishing between the conditions on opt in (2) allows us to detect a large , and vice-versa under distributional assumptions on , .
Remark A.1 (Independently sampled training datasets). Suppose each agent's dataset consists of i.i.d. samples from its population distribution , , respectively, and the two datasets are independent. Define the minimal average population error by . Let and assume . Applying relative VC uniform convergence [BBL03, Thm. 7] separately to the two datasets gives, with probability at least ,
where for a sufficiently large universal constant . Thus, the joint empirical loss bounds the minimal average population error from both above and below. In particular, for any , on this event, implies , ruling out any shared classifier in with average population error at most across and . Conversely, implies . In particular, zero joint empirical loss implies on the same event. Thus, under independent sampling, the joint empirical loss characterizes the minimal average population error and importantly, when the target distribution satisfies , we have , so this remark directly relates the joint empirical loss to the minimal target population error.
We go back to our running examples and apply Remark A.1 to demonstrate how, in real applications, a large joint empirical loss certifies that with high probability.
Example 3 (Learning from disparate label sets). Remember that Alice's labels are all , and Bob's are all , but their data otherwise follow the target distribution conditioned on the label. Formally, let and , and suppose and independently. If both labels have equal probability under , then . By Remark A.1, with probability at least , implies , whereas implies . Thus, the joint empirical loss allows the agents to conclude whether a shared classifier in can achieve low target error.
Example 4 (Identifying conflicting labeling practices). Remember that the agents encounter the same distribution of emails but may assign different labels to the same email. Let denote their common feature distribution and their deterministic labeling functions, so each task is individually realizable. Let and be the distributions of and , respectively, for . We take the target distribution to be , a symmetric choice that gives the two agents' test errors equal weight. Suppose and independently. By Remark A.1, with probability at least , implies that a shared classifier in can achieve test error at most under , whereas rules out any shared classifier in with test error at most under .
B Helper Lemma
Lemma B.1 (Laplace mechanism [DMNS06]). Let be a vector-valued function with -sensitivity at most , meaning for all neighboring , i.e., two that differ only in a single element. The mechanism , where , is epsilon-DP. Here denotes the mean-zero Laplace distribution with density . Moreover, for every and , we have .
Lemma B.2 (A constant-degree expander [RU08]). There are universal constants and such that, for every even , there is a simple bipartite graph with variable nodes of degree four and check nodes of degree eight satisfying
Here is the set of checks adjacent to . Consequently, every such has a check adjacent to exactly one of its variables.
Lemma B.3 (Carathéodory’s theorem [Car07]). Let . Every point can be written as a convex combination of at most points of . That is for every , there exist , points , and coefficients with such that .
Lemma B.4 (Exponential mechanism [MT07]). Let be a finite output space, and let be a cost function with sensitivity at most ; that is, for every pair of neighboring datasets and every , . The exponential mechanism outputs with probability . Then is -DP. Moreover, for every , with probability at least ,
Lemma B.5 (From LP constraints to halfspace datasets). Fix . Let be a finite set of linear constraints on . There exists a constant , depending only on , with the following property. For each , define the points
together with and in . Then for any subsets , if we form the datasets
the linear system is feasible in if and only if (that is, there exists such that for all and for all ).
Proof. We first choose depending only on . For each subset such that is infeasible, Farkas' lemma gives a vector with , , and . Since has only finitely many subsets, we may choose smaller than is infeasible) (or if every subset is feasible). Now fix any and let . Suppose first that there exists satisfying for all , and consider with . Then , , and for every and ,
Hence for all and for all , so . Conversely, suppose , and let be such that for all and for all . Since , we have , so . Setting , the conditions for and for divide by to yield
In particular, for all . By our choice of , the system cannot be infeasible, since otherwise
a contradiction. Thus is feasible in .
Lemma B.6 (Information complexity of the trace inner product). Let , and let be the uniform product distribution over . For , we have .
Proof. The trace pairing is nondegenerate. Therefore, there exist dual -bases and of satisfying
Write where, . Then
and consequently .
The changes of basis are bijections, so under , the corresponding are independent and uniform. Moreover, any protocol for induces a protocol for with the same error and the same internal information cost. It is folklore that binary inner product on independent uniform bits has constant-error internal information complexity . Therefore, .
C Embedding a codeword into an LP
In this section, we develop the machinery that turns a pair of codewords into an instance of the promise problem. Recall from Section 4.1.1 that each data point imposes one linear constraint on , so that means the resulting system is feasible, while means it remains infeasible even after removing any constraints. Our goal is therefore a linear program whose feasibility encodes the value of a hard function, and in which each private symbol contributes exactly one inequality.
Our representation is based on the fundamental-polytope approach from the literature on LP decoding of linear codes [FWK05; FSBG09]. In that approach, each row of a parity-check matrix is represented by the convex hull of its satisfying local assignments, and the resulting local polytopes are intersected to obtain an LP relaxation of the code. We adapt this machinery in two ways. First, we represent every symbol of as an exposed vertex of a two-dimensional polygon, rather than using the standard indicator representation. Second, we interpret the symbol-selecting inequalities as private data records and the parity-check inequalities as public records.
The function we want to compute. Fix the public parity-check matrix with , retaining all its rows, and let have dimension . We assume that the code is systematic, i.e., the first coordinates carry the message and the remaining are determined by the checks. Alice holds a codeword , Bob holds a codeword , and they wish to compute
where Tr denotes the trace from to . The computation has three parts: each party's input must be a genuine codeword, that is, satisfy every parity check of ; for every message coordinate , the bit must be computed from the pair ; and these bits must be combined by parity. We then plant a public condition on the output, namely that the resulting parity equals zero. Feasibility of the whole system is then equivalent to .
Encoding a field element. Fix an enumeration and set . To represent a field-valued variable we introduce a pair of real variables and impose the public constraint , where is the convex hull of the points . Since these points lie on a parabola, they are in convex position, and is described by
See Figure 6. This constraint says only that is some mixture of field elements. The private input supplies one further inequality that selects a particular vertex.
Lemma C.1 (Pinning a field element). Let . Then for every ,
with equality if and only if . Consequently, the constraints and together force .
Proof. The displayed identity is immediate. Since , we may write with and . As is linear,
The constraint therefore forces . Every term is nonnegative, so for all , whence and .
We call the pin for ; see Figure 6. The inequalities describing are public and identical for every input, and only the choice among the candidate pins depends on the data. Thus one private inequality specifies one of field elements, which is exactly the accounting we need.
Imposing a public relation. The pins determine each symbol individually, but we also need to impose relations among several variables, such as a parity check or the trace of a product. Such relations are not linear, so we cannot write them directly. The following device converts any finite relation into linear inequalities.
Let be a public finite set of tuples , listing the assignments we wish to allow. Replace each field symbol by the point , we describe the construction above, and leave the

Figure 6: Encoding of the field's element into
bits unchanged. Then, let be the convex hull of the resulting points in . These points are rational, so is a rational polytope and admits a finite description by linear inequalities, which we add to the linear program as public rows. If the polytope is lower-dimensional, this description includes equations for its affine hull, each written as two inequalities. This also covers . In the linear program this reads
where the are symbol variables and the are real variables playing the role of bits. By itself this constraint is weak, as it says only that the tuple is some mixture of allowed assignments. The point is that pinning some of the variables collapses the mixture.
Lemma C.2 (Forced relation). Fix nonnegative integers with , and use the convention . Let be a finite relation and let be as above. Fix index sets and , together with symbols for and bits for , and suppose that contains exactly one tuple whose -th symbol equals for every and whose th bit equals for every . If a point satisfies for every and for every , then equals the point generated by ; in particular every remaining coordinate is forced to the value it takes in .
Proof. We want to show that in any convex decomposition of over the generating points, all the weight sits on the single generator coming from .
Write with and , where denotes the point generated by the tuple . Define
where denotes , acts on the th symbol block and on the th bit coordinate. By Lemma C.1, is maximized over exactly at , and clearly is maximized over exactly at . Writing for the resulting maximum, we therefore have for every , with equality if and only if agrees with the fixed assignment on . On the other hand by hypothesis, so linearity gives
Every summand is nonnegative, so whenever ; that is, only tuples agreeing with the fixed assignment receive positive weight. By hypothesis is the only such tuple, so and .
The four families of constraints. We can now assemble the linear program. Every part of the computation becomes an instance of the device above, and the private inputs enter through the pins alone.
Symbols. For every we introduce with , and Alice's private input contributes the pin forcing . Bob contributes an identical family for a second collection .
Parity checks. For every row of , we take to be the set of assignments to the coordinates in the support of that satisfy the check, and impose membership in the corresponding polytope. Applying this to both collections guarantees that pinned inputs are codewords.
Trace products. For every we introduce a real variable and take . Once and are pinned, Lemma C.2 forces .
Parity of the bits. We introduce , impose the public row , and for every take to be the four even-parity binary triples, so that the constraint reads . Once and are bits, Lemma C.2 forces .
Finally we plant the public row . Notice that these families are not independent: the pins force the symbols, the symbols force the trace bits, and the trace bits together with the running parities force the next parity. Each gadget produces integral values only because the previous one already has, so the constraints must be read as a chain rather than as a set.
Size of the embedding.
Lemma C.3 (Dimension and number of rows). The linear program above uses real variables. If has rows of maximum support size , the public rows together with all candidate private pins admit a rational description using at most
inequalities. For the chosen (4, 8)-biregular graph, and , so both the public-row count and the full catalogue size are at most for universal .
Proof. The symbol blocks contribute variables, the trace bits contribute , and the running parities contribute .
For the rows, use a rational facet description in each polytope's affine hull, together with equations defining that affine hull. The Upper Bound Theorem [McM70] bounds the number of facets of a polytope with vertices and intrinsic dimension by . In ambient dimension , at most affine-hull equations add at most inequalities; a zero-dimensional polytope needs only these equations. All local ambient dimensions here are bounded by .
Symbol constraints and pins. Each of the symbol blocks uses public inequalities for , including the affine-hull equation when . Each block has possible pins, although only one pin per block is selected for a dataset. Thus the public symbol rows and all candidate pins use catalogue rows.
Parity checks. Fix a check with nonzero entries. Its valid local assignments are the solutions of one linear equation in unknowns over : any of the symbols may be chosen freely, and the remaining one is then determined, since its coefficient is nonzero. There are therefore valid assignments, so the associated polytope has at most vertices. Each symbol is represented by a point of , so this polytope lies in dimension at most . Applying the Upper Bound Theorem with and bounds the facet count by ; at most inequalities describe the affine hull. Sum over all checks for both words, including redundant checks, to obtain rows.
Trace products. The trace polytope is the convex hull of the points for , which lie in . The Upper Bound Theorem with and gives facets, and there is one such polytope for each of the message coordinates. Including at most ten inequalities for each affine hull, these contribute public rows.
Parity accumulation. The polytope is the convex hull of four points in and therefore has a constant-size description; there is one for each of the steps of the chain, and the endpoint equations and contribute four inequalities. Together these give inequalities, which is absorbed into the last term.
With , one may take a = 56, increasing a universal multiplicative constant to cover every family. All descriptions are rational and fixed before the inputs are specified. The conversion in Lemma B.5 adds one homogenizing coordinate and two anchor types; these are counted in Lemma D.3. Repetitions affect the dataset lengths, but not this count of domain points.
Remark C.4 (Why the parabola). The embedding is chosen for three reasons, all visible in Figure 6. First, a parabola is strictly convex, so no field element lies in the convex hull of the others; had some fallen inside, no single inequality could isolate it, and one record could not specify a symbol. Second, the tangent line at touches the parabola only there and has integer coefficients, so the pin is rational and uniform in ; this matters because every inequality eventually becomes a point of the public data space. Third, two dimensions is the fewest in which points can be in convex position, so the embedding is optimal in the resource that is scarce for us. The alphabet size therefore costs inequalities, never coordinates.
D Proof of the lower bound for half spaces
Step 1: construction. Fix an even , where is the universal minimum in Lemma B.2, increased so that . Let with . For each such , fix once and for all a graph supplied by that lemma. This is a -biregular graph on variable nodes and check nodes satisfying, for a universal constant ,
where denotes the support of check and the set of checks meeting . The same chosen graph is used for every alphabet and every dataset size at this block length. Let be its incidence matrix, viewed over , and define
Since , we have . After relabeling the coordinates, fix a systematic generator .
Alice holds and Bob holds . Set and , and define
Since is systematic, , so the trace products may be formed from the first coordinates of the codewords. We also write for this value.
By Section C, the pair determines a rational linear program with variables and at most possible distinct rows, for universal constants . Its only input-dependent rows are the pins determined by and the pins determined by . We retain all parity checks, including redundant ones, since the rigidity proof uses the graph structure rather than a basis. Write for the set of satisfying every public symbol and parity-check row, so that and for every ; note that is only a relaxation of and may contain further points.
Step 2: Correctness and the gap. Let denote the linear program consisting of all public rows together with the private pins determined by and .
Lemma D.1 (Feasibility decides ). For every , the system is feasible if and only if .
Proof. Suppose . Set and for , for , and . Each pin is satisfied by Lemma C.1; each parity-check polytope is satisfied because , so the corresponding local assignment is valid and its embedding is one of the generators; the trace and parity polytopes are satisfied for the same reason; and satisfies the planted row.
Conversely, let be a solution of . By Lemma C.1 the pins force and for every . For each the trace relation assigns a unique bit to the pair , so Lemma C.2 forces . Since and each is a bit, induction on with Lemma C.2 applied to forces . In particular , and the planted row gives .
The feasibility equivalence by itself gives no quantitative guarantee after pins are removed. The next lemma supplies that guarantee: the codeword remains forced after a linear number of erasures, even inside the fractional relaxation .
Lemma D.2 (LP-erasure rigidity). Let , let with , and let satisfy for every . Then .
Proof. Let and suppose . Since we have , so Equation (17) gives . Every coordinate lies in exactly four checks, so is incident to edges; if every check in met at least twice, then , contradicting expansion. Hence some check has for a single .
Every lies outside , so . As , the relation of check assigns a unique symbol to coordinate given the other seven, so Lemma C.2 forces , contradicting . Hence .
Step 3: from the LP to fixed-size datasets. We now convert the linear program into size- datasets for Alice and Bob via Lemma B.5. Let be the finite set of all linear constraints appearing in the public polytopes (with each equality written as two inequalities), together with all candidate pins at each of Alice’s and Bob’s symbol positions. Applying Lemma B.5 to yields a constant and the corresponding points , along with the anchors and . Let denote the resulting finite set of points; note that depends only on and is independent of the inputs and the testing parameters.
Let be the number of public LP rows. For positive integers , Alice’s encoder consists of copies of each of her selected pin records and copies of . Bob’s encoder consists of copies of each of his selected pin records, copies of each public row record, and copies of . In particular, their lengths are
For these intermediate samples, opt denotes the same pooled-error sum, allowing unequal lengths; only the padded size- inputs below are passed to the tester. Put .
Lemma D.3 (Gap, diameter, and encoding resources). There are universal constants such that, for every even and every , the preceding construction has a fixed domain in dimension at most with and . For every and every pair of secrets,
Each party’s encoder has length at most and replacement diameter at most KL. Whenever both lengths are at most n, the encoders can be padded to exactly n records per party with the same promise and diameter guarantees. The domain depends only on .
Proof. The LP has real variables. Lemma C.3 bounds its public rows and all candidate pins by for a fixed universal . Lemma B.5 adds one coordinate and two anchor types. Taking large enough proves the domain and row counts, and (19) gives the dataset lengths.
If , Lemma D.1 gives an exact feasible LP witness. Its homogenization classifies every record, including the anchors, correctly by Lemma B.5.
Suppose and a halfspace makes fewer than errors. No public row or anchor can be misclassified, because each appears times. Let be the positions of misclassified pin records. Each such record appears times, so . Keep every public row and precisely the pins outside . The halfspace is consistent with all these records and the normalization anchor. By Lemma B.5, the corresponding original closed LP subsystem has an exact witness . The retained original pins give for and z'_i^\star = e(c'_i) for . Both symbol vectors satisfy all original public rows, so Lemma D.2 forces and . The trace and parity relations now force , contradicting the retained public condition .
For the diameter, fix an ordering with one block of positions for each pin and fixed positions for the public rows and anchors. Changing a party's secret replaces at most records; all other positions are identical. This bounds the replacement distance also when the datasets are regarded as multisets.
Finally, append copies of to Alice and copies of to Bob. These multiplicities depend only on the public parameters. Every Match witness already satisfies the anchors, while adding records cannot decrease the Far optimum. The fixed padding changes neither replacement diameter. Group privacy applies on the full size- input space, so the padded encoders can be used directly in Lemma 2.2.
With and , the Far gap is at least , the diameter is , and the sample cost is per party.
E Sample-size-dependent lower bounds
The proof of Theorem 4.1 gives a lower bound of whenever . To obtain bounds for smaller datasets, we return to the encoders in Section D. Recall that Bob repeats each of its public records times, where is a universal constant. These repetitions contribute records, so the choice of block length and alphabet must also account for the dataset size. For smaller datasets, we shorten the block length or reduce the alphabet. This makes the encoders shorter, at the price of a weaker lower bound of order .
We call a pair a scale, where is an even block length and is a power of two. At scale , we prove that
Indeed, when is below the claimed lower bound, the encoders use records, which fit into datasets of size under this condition. For , with above a universal constant, we use the binary alphabet and choose . This gives . For , we use and choose the largest alphabet allowed by the sample and domain sizes. This gives
In particular, the bound reaches once .
We also want the bounds for different sample sizes to hold on the same public domain. We therefore choose a domain containing all the scales needed for the two regimes, before are specified. Each scale uses points. By taking geometrically spaced block lengths and alphabets, we can include these scales while keeping the total number of points at most . All logarithms in this section are to base two.
Lemma E.1 (Lower bound at a single scale). There are universal constants , and an even integer such that the following holds. For every even and every with , there is a public domain that depends only on and has , such that for every and every satisfying
every -private tester for over with resolution at dataset size satisfies
Proof. Let be the minimum block length used in Section D. Choose an even large enough that , where is the expansion constant of Lemma B.2. For every even , we use the domain of Lemma D.3 with , padding its coordinates with zeros if necessary. The bounds on its dimension and size follow from that lemma, and the domain depends only on . Recall also that .
Let and let satisfy (20), where will be fixed at the end of the proof. Suppose toward a contradiction that there is an -private tester with resolution , where will also be fixed at the end. Since is an integer, we apply Lemma D.3 with and . These choices give . Thus the encodings of two secrets satisfy when , and when .
First, we check that the encoders fit into records. Each encoder has length at most , including the public records and anchors. Since , we obtain
The first inequality uses , , and . The second follows from (20), provided that . By Lemma D.3, we can therefore pad both encoders to exactly records without changing their promise or encoding diameters.
Next, let be the dimension of the code, and let be uniform on . Running the tester on the padded encodings, and reading Match as 0 and Far as 1, gives a protocol computing with error at most . By Lemma B.6, its internal information cost is at least for a universal .
On the other hand, changing one party's secret replaces at most of its records. Hence
for a universal . Applying Lemma 2.2 to the same protocol gives
We now fix
Since and , the term is at most . Rearranging therefore gives
contradicting the assumption on t.
Remark E.2 (Larger domains). Lemma E.1 also applies to testers over any domain , with , containing a copy of padded with zeros. Indeed, restricting a tester to datasets supported on this copy preserves privacy and its completeness and soundness guarantees. Padding with zeros also preserves : a normal makes the same predictions on the copy as its first coordinates, and every normal in extends to by adding zero coordinates.
We next construct a single domain containing the scales needed for both regimes.
Lemma E.3 (A single domain for all scales). Let be the constants of Lemma E.1. There are universal constants , and such that the following holds for every and . There are an integer and a public domain with , depending only on , such that satisfies
and contains a copy of padded with zeros for every scale in
Proof. Fix
Let be the largest element of that is at most . Choose an integer , so that and this maximum exists. Maximality gives . The remaining bounds on follow from the choice of :
For each scale in (23), fix one construction of , including its graph, inequality descriptions, and the constant of Lemma B.5. Pad each domain with zeros to embed it in . All these embeddings fit because .
We count the points contributed by the two families separately. The binary scales use at most
points. Since , this is less than .
For the alphabet scales , let be the largest power of two satisfying . The inequality ensures that exists. These scales use at most
points, where we used .
The union therefore has fewer than points. We add distinct unused points until the domain has exactly points. None of the encoded datasets uses these additional points. All choices have been made using only , before the testing parameters are specified.
We now choose a scale for each sample size.
Theorem E.4 (Lower bounds as a function of the sample size). There are universal constants , , and such that the following holds. Let and , and let be the domain of Lemma E.3. For every and every with , every -private tester for over with resolution at dataset size satisfies
Proof. Use the constants and scales of Lemmas E.1 and E.3, and set and . Enlarge if necessary so that . Every scale used below belongs to (23). Thus Lemma E.1 applies to testers over by Remark E.2.
Case 1: . We use the binary alphabet and choose to be the largest element of satisfying . Such an exists because .
To obtain the claimed bound, we need . If , the next scale 2r violates the constraint, so
If , then , since . Thus for .
For , the inequality is precisely the sample-size condition in Lemma E.1. Applying that lemma gives
Case 2: . We use the largest block length and choose the alphabet to satisfy both the domain-size and sample-size constraints. Define
and let be the largest power of two satisfying
The choice is admissible. Indeed, because , while
follows from .
Since , our choice gives
Thus is one of the scales included in . We also have , so Lemma E.1 gives
It remains to show that is large enough. By maximality, violates (25), and therefore . Using and , we obtain . Also, implies for a universal , and hence for a universal . Combining these inequalities gives , where .
Finally, , so
This gives the claimed bound for . Taking completes the proof.
The two expressions agree up to universal constants when , where both give . The theorem includes the resolution . As with the large-sample result, the sample-size conditions are sufficient and are not asserted to be sharp.
F Additional Algorithms for Small-dataset Regime
Proof of Theorem 4.9. We write opt = opt_{}(S_A, S_B). We first prove privacy and then turn to the utility proof.
We first prove the privacy guarantee. Fix the public signs. Replacing one record of Alice moves one unit of count from one ray to another, so it changes each by at most two. Therefore, the vector of the sums has -sensitivity at most , and by Lemma B.1 and composition property of DP [DMNS06], Alice's release is -DP. The same argument works for Bob. Since the public signs are independent of the datasets and the output is a post-processing of the two releases, the protocol satisfies -two-party DP.
To show this algorithm achieves the claimed resolution, for , let be the difference of the two sums before adding the noise. Since is a constant, the tail bound of the Laplace distribution and a union bound over the noise terms show that, with probability at least 0.95, all of them are in absolute value. In the rest of the proof we assume that this event holds. Then, by choosing large enough, every noise term is at most , and hence for every .
Under the Far promise, Equation (14) gives for every . Thus and for every , and the algorithm outputs Far.
Under the Match promise, Equation (14) gives for every . Let . Since the counts are integers with disjoint supports,
The signs are independent, so and . By the Paley–Zygmund inequality,
and in particular with probability at least . The repetitions are independent, so if is large enough, with probability at least 0.95 there exists with . For this , we have , and the algorithm outputs Match.
In both cases, the failure probability is at most 0.1, which completes the proof.
Proof of Theorem 4.11. First of all, by Sauer–Shelah lemma (see Lemma 4.3), we can restrict to a finite discretization since is public and each party can find the projection of the hypothesis class on .
For any finite multiset over , define the local error at Alice and Bob as
Using this notation, we can rewrite the optimal error as
Then, we show how we can use the mechanism of [BLR13] to perform the test. Fix a sufficiently large universal constant , and set
The family is public and has cardinality . We claim that, for every party and every , some satisfies
Indeed, view as defining an empirical distribution over . Sample records independently and uniformly from , with replacement, and let be the resulting multiset. Notice that is the population error of under and is its empirical average over the draws. Since the class of halfspaces in has VC dimension , standard VC uniform convergence guarantees that for a sufficiently large universal constant , a sample of size with satisfies
Multiplying both sides inside the probability by shows that such a exists.
Then, we explain the protocol. Each party independently applies the exponential mechanism with privacy parameter to the public family , using the cost
Let be its released synthetic dataset. After exchanging their releases, the parties compute
They output Match if , and Far otherwise.
The privacy proof is straightforward: For every fixed candidate , changing one input record changes by at most one for every . Therefore, has sensitivity at most one, and each release is -DP by Lemma B.4. The public parameters and remain fixed, so the same sensitivity bound holds on the full domain of finite input multisets.
Then, we prove the utility guarantee. By Lemma B.4, for each party , with probability at least 19/20,
The last inequality follows from Equation (15), for a sufficiently large universal constant , using and .
By a union bound, both releases satisfy this guarantee with probability at least 0.9. On this event, the total error of every halfspace is approximated within . Taking the minimum over therefore gives
If the pooled data are realizable, then , so the protocol outputs Match. If , then , so it outputs Far. This proves completeness and soundness.