arXiv:2611.03599cs.LGNov 2026

Manuscript Offprint

arXiv:2611.03599

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

Mahdi Haghifam, Kumar Kshitij Patel, Avrim Blum, Giulia Fanti, Juba Ziani

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 H\mathcal{H}. 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 H\mathcal{H} fits their combined data. Before committing to data sharing, Alice and Bob therefore want to test whether a single classifier in H\mathcal{H} can jointly fit both datasets—without revealing their individual data points to one another.

We formalize this problem from a learning-theoretic viewpoint via optH\text{opt}_{\mathcal{H}}, the minimum number of mistakes made by any hypothesis in H\mathcal{H} on their pooled data. Through interactive communication, the agents must distinguish optH=0\text{opt}_{\mathcal{H}} = 0 (compatible datasets) from optH≥t\text{opt}_{\mathcal{H}} \geq t (conflicting datasets) under pure ε\varepsilon-two-party differential privacy. A trusted curator could do this with t=O(1/ε)t = O(1/\varepsilon), and we ask how small tt can be without one. For thresholds on the real line over a domain of size mm, we show that the optimal tt is Θ~(log⁡log⁡m/ε)\tilde{\Theta}(\log \log m/\varepsilon), exponentially smaller than the Θ(log⁡m/ε)\Theta(\log m/\varepsilon) samples needed to privately learn thresholds, even with a curator. For halfspaces in Rd\mathbb{R}^d, the dependence on mm jumps to log⁡(m)\log(m): we give a protocol with t=O~(d3log⁡m/ε)t = \tilde{O}(d^3 \log m/\varepsilon) and show that some domains require t=Ω(dlog⁡(m/d)/ε)t = \Omega(d \log(m/d)/\varepsilon).

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?

References (100)