N-Parties Private Structure and Parameter Learning for Sum-Product Networks

Xenia Heilmann, Ernst Althaus, Mattia Cerrato, Nick Johannes Peter Rassau, Mohammad Sadeq Dousti, Stefan KramerarXiv 2025 · DOI

Introduction

Privacy-preserving machine learning (PPML) is increasingly critical in sectors like healthcare and finance, where data privacy is mandated by regulations such as GDPR. While Deep Neural Networks (DNNs) dominate the field, they are notoriously difficult to secure. Cryptographic tools like Fully Homomorphic Encryption (FHE) or Oblivious Transfer (OT) often introduce prohibitive computational overhead, typically limiting practical training to just two or three parties.

This paper introduces the first protocol for $N$-party private learning of both the structure and parameters of Sum-Product Networks (SPNs). SPNs are probabilistic graphical models that represent distributions through layers of weighted sums and products. Unlike DNNs, SPNs offer tractable inference and are naturally more compatible with Secure Multi-Party Computation (SMPC).

The Proposed Architecture

The authors propose a protocol designed for an "honest-but-curious" setting, ensuring privacy even if up to half the participants collude. The system utilizes a Manager-Member architecture to coordinate learning without centralizing raw data.

The N-party private learning architecture, showing the interaction between the Manager and Members across five key stages: generation, training, evaluation, parameter updates, and inference.

The workflow consists of five primary stages:

  1. Generation of Structural Forest: A Manager generates a forest of random SPN structures (specifically RAT-SPNs) to avoid the high cost of private structure search.
  2. Training of Structures: Members train these structures locally on their private datasets ($D_1, D_2, D_3$).
  3. Evaluating and Weighting: The group privately computes global weights for the forest based on local validation performance.
  4. Parameter Training: Parameters are updated across the network using a custom private division protocol.
  5. Inference: The final model performs private inference on new data points through secure addition and multiplication.

Technical Foundations: Secret Sharing

At the core of the protocol is Shamir’s polynomial secret sharing. Instead of heavy encryption, data is split into "shares." No individual share reveals information about the original data, but the shares can be combined to reconstruct results or perform arithmetic operations.

The polynomial secret sharing process where a secret $c_0$ is distributed as shares $f(i)$ among multiple members, enabling secure arithmetic operations over the shares.

Because SPNs rely primarily on additions and multiplications, they are "SMPC-friendly." This avoids the need for expensive approximations of non-linear activation functions (like ReLU or Sigmoid) required by DNNs. The authors' primary technical contribution is a Custom Private Division protocol. Since SPN parameter updates require division—a complex operation in secret sharing—they adapted Newton’s method and a secure truncation scheme to perform these updates efficiently across $N$ parties.

Experimental Evaluation

The protocol was evaluated on five standard density estimation benchmarks (e.g., nltcs, bnetflix) under both homogeneous (i.i.d.) and heterogeneous (non-i.i.d.) data distributions.

Key Results

  • Accuracy: The private $N$-party model achieved log-likelihood scores nearly identical to non-private distributed baselines, suggesting that privacy does not come at the cost of model performance.
  • Scalability: Unlike many PPML solutions limited to small groups, this approach scales gracefully to 12 or more members. Training on the nltcs dataset with 12 members took less than 30 minutes.
  • Efficiency: Compared to CrypTen (a popular SMPC library for PyTorch), the SPN protocol was significantly faster for models with a similar number of parameters.
  • Robustness: The model remains effective under moderate data imbalance, though performance begins to degrade under extreme heterogeneity (highly clustered data).

Conclusion and Future Work

This research demonstrates that SPNs are a powerful and efficient alternative to DNNs for multi-party private learning. By sidestepping the computational bottlenecks of FHE and the structural complexity of DNNs, the authors provide a scalable path for $N$-party collaboration. Future work will focus on extending these techniques to continuous data distributions and classification tasks, as well as optimizing the private division bottleneck, which currently accounts for approximately 40% of training time.

Summary updated

BibTeX
@misc{heilmann2025n,
  author = {Xenia Heilmann and Ernst Althaus and Mattia Cerrato and Nick Johannes Peter Rassau and Mohammad Sadeq Dousti and Stefan Kramer},
  title = {{N-Parties Private Structure and Parameter Learning for Sum-Product Networks}},
  year = {2025},
  eprint = {2510.05946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05946},
}
Figure