Skip to main content
QUICK REVIEW

[Paper Review] Privacy-Preserving Classification of Personal Text Messages with Secure Multi-Party Computation: An Application to Hate-Speech Detection

Devin Reich, Ariel Todoki|arXiv (Cornell University)|Jun 5, 2019
Internet Traffic Analysis and Secure E-votingComputer Science51 references12 citations
TL;DR

This paper presents the first provably secure, privacy-preserving text classification system using Secure Multi-Party Computation (SMC) for hate-speech detection in personal messages. It enables classification with logistic regression and tree ensembles while ensuring neither party learns the other's sensitive data—achieving sub-second classification times, two orders of magnitude faster than prior homomorphic encryption-based methods, with no accuracy loss.

ABSTRACT

Classification of personal text messages has many useful applications in surveillance, e-commerce, and mental health care, to name a few. Giving applications access to personal texts can easily lead to (un)intentional privacy violations. We propose the first privacy-preserving solution for text classification that is provably secure. Our method, which is based on Secure Multiparty Computation (SMC), encompasses both feature extraction from texts, and subsequent classification with logistic regression and tree ensembles. We prove that when using our secure text classification method, the application does not learn anything about the text, and the author of the text does not learn anything about the text classification model used by the application beyond what is given by the classification result itself. We perform end-to-end experiments with an application for detecting hate speech against women and immigrants, demonstrating excellent runtime results without loss of accuracy.

Motivation & Objective

  • To address privacy risks in text classification where personal messages are exposed to applications.
  • To design a provably secure solution that prevents leakage of both message content and model details during classification.
  • To enable practical deployment of privacy-preserving text classification using SMC, overcoming performance limitations of prior methods.
  • To optimize machine learning models and protocols specifically for the SMC setting to ensure efficiency and accuracy.
  • To demonstrate end-to-end feasibility through a real-world hate-speech detection use case.

Proposed method

  • Uses Secure Multi-Party Computation (SMC) with two parties: Alice (message owner) and Bob (model owner), ensuring neither learns the other’s private data.
  • Employs a novel SMC-based protocol for private feature extraction from unstructured text using bucketized secure equality tests to reduce computation cost.
  • Applies optimized secure computation for logistic regression and AdaBoost models, with dummy features used to preserve security without affecting model accuracy.
  • Uses 13-bit and 17-bit representations for unigrams and bigrams, respectively, with no observed collisions in experiments.
  • Implements the protocol in Rust for improved efficiency, with communication and computation costs factored into end-to-end performance evaluation.
  • Introduces a new protocol for binary classification using an ensemble of decision stumps over binary features in a privacy-preserving manner.

Experimental results

Research questions

  • RQ1Can a provably secure SMC-based system be designed for privacy-preserving text classification without compromising accuracy or performance?
  • RQ2How can secure feature extraction from unstructured text be efficiently implemented under SMC constraints?
  • RQ3What are the performance trade-offs between SMC and homomorphic encryption in real-world text classification workloads?
  • RQ4To what extent can standard ML models like logistic regression and AdaBoost be adapted for secure computation without loss of utility?
  • RQ5Can private classification be achieved in practice with end-to-end runtimes under one second?

Key findings

  • The proposed SMC-based system achieves end-to-end classification in seconds, representing a two-orders-of-magnitude improvement over the prior homomorphic encryption-based solution, which required 19 minutes per tweet.
  • The system maintains full accuracy compared to clear-text classification, with no degradation due to privacy-preserving transformations.
  • The use of bucketization reduces the number of required secure equality tests, significantly lowering computational cost while preserving security.
  • Dummy features are introduced to balance bucket sizes and prevent information leakage, with no impact on model output since their coefficients or weights are zero.
  • The implementation in Rust demonstrates practical efficiency, with both communication and computation costs included in the sub-second runtime.
  • The work provides the first evidence that provably secure, end-to-end privacy-preserving text classification is feasible in practice with real-world performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.