NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Private Text Classification

Leif W. Hanlen, Richard Nock, Hanna Suominen, Neil BaconarXiv 2018

Abstract

Confidential text corpora exist in many forms, but do not allow arbitrary sharing. We explore how to use such private corpora using privacy preserving text analytics. We construct typical text processing applications using appropriate privacy preservation techniques (including homomorphic encryption, Rademacher operators and secure computation). We set out the preliminary materials from Rademacher operators for binary classifiers, and then construct basic text processing approaches to match those binary classifiers.

Introduction

In fields like healthcare, text data such as clinical notes is a critical resource for research but presents significant privacy risks. Traditional de-identification—stripping names and dates—is often insufficient; "record linkage" attacks can frequently re-identify patients by cross-referencing anonymized notes with public records.

The challenge is to enable researchers to extract patterns from text corpora held by different organizations (peers) while respecting legal and contractual barriers that forbid sharing raw text. This paper proposes a framework where multiple peers can collaboratively train a model without ever exposing their raw data to each other or a central coordinator.

Methodology

The proposed framework bridges the gap between Natural Language Processing (NLP) and Secure Multi-Party Computation (SMPC) using three key components:

  1. Rademacher Observations (Rados): Instead of training on individual data points, the system uses "rados"—a technique that aggregates multiple observations into a single weighted sum. This irreversible aggregation step provides a mathematical layer of privacy before encryption begins.
  2. Paillier Homomorphic Encryption: This encryption scheme allows for additive operations on encrypted data. A central coordinator can sum up encrypted values from different peers without having the key to decrypt them.
  3. Secure Multi-Party Protocols: The lifecycle of a private classifier is managed through protocols that handle building encrypted rados at the peer level, training the classifier via a central coordinator performing "blind" linear algebra, and classifying new local text using the global model without leaking features.
System architecture for private collaborative learning across multiple peers.

The system is designed to be resilient even against an "honest but curious" coordinator. Because the coordinator only observes encrypted, aggregated rados, they cannot reconstruct the original sensitive text.

Experimental Evaluation

While the primary motivation is healthcare text, the preliminary evaluation utilizes the UCI Ionosphere dataset. This dataset provides a large number of numeric features, serving as a clean proxy to test the mathematical rigor of the encrypted learning approach. Since NLP converts text into high-dimensional numeric vectors, this serves as an effective validation of the core logic.

Results

The authors compared the private "radoLearn" approach against standard baselines, measuring both accuracy and computational overhead.

Performance comparison of radoLearn against baselines.

As shown in the results table, the fully encrypted, 4-peer model achieved a misclassification rate of 0.085. This is remarkably close to the unencrypted baseline (0.049) and outperformed some previously reported neural network results on the same data. However, privacy comes with a "tax" in terms of speed: the unencrypted baseline was near-instant (0.13s), while the fully encrypted training took 87 seconds, representing a ~670x slowdown.

Discussion and Conclusion

While the computational slowdown is significant, it remains within a practical range for offline training of sensitive medical models where data security is the primary bottleneck. The use of Rademacher operators to "smear" individual records into an aggregate makes reverse-engineering specific records significantly harder than using encryption alone.

Future work will focus on scaling these methods to larger datasets, potentially using hardware acceleration, and extending the framework to non-linear architectures like Transformers. Additionally, the challenge of performing the initial feature extraction (e.g., generating embeddings) in a privacy-preserving manner remains an open area for research.

Summary updated

BibTeX
@misc{hanlen2018private,
  author = {Leif W. Hanlen and Richard Nock and Hanna Suominen and Neil Bacon},
  title = {{Private Text Classification}},
  year = {2018},
  eprint = {1806.06998},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.06998},
}
Figure