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

Private Inference in Quantized Models

Zirui Deng, Vinayak Ramkumar, Rawad Bitar, Netanel Raviv

TL;DR

This paper moves away from slow cryptographic methods for Private Inference (PI) and introduces a faster, information-theoretic approach specifically for quantized models. By treating inference as a specialized form of Private Information Retrieval (PIR), the authors establish a fundamental mathematical tradeoff between the privacy of the server’s model and the privacy of the user’s data.

What Problem Does This Paper Address?

In the world of Machine Learning as a Service (MLaaS), we face a "double-blind" privacy challenge. A server owns a valuable, pre-trained model (intellectual property), and a user owns sensitive data (personal privacy). Both want to perform inference—calculating a prediction—without revealing their secrets to the other.

Traditionally, researchers have used heavy-duty cryptographic tools like Homomorphic Encryption (HE) or Multi-Party Computation (MPC). While secure, these methods are computationally expensive, often slow, and can even reduce model accuracy.

The authors identify a specific opportunity: most modern, efficient models are quantized, meaning their weights are restricted to a finite set of values (like $\pm 1$). They ask: can we use information theory to make private inference for these models faster and more robust?

Methods

The authors reframe Private Inference as the task of retrieving inner products ($wx^\top$) between a weight vector ($w$) and a data vector ($x$). Their approach draws inspiration from Private Information Retrieval (PIR), but with a twist: in PIR, the user wants to hide their query; here, both the user and the server have secrets to keep.

Key techniques include:

  • Coset and Random Key Protocols: For models with binary weights ($\pm 1$), the authors developed protocols where the server sends a "query" (a syndrome or masked version of the weights) and the user responds with linear projections of their data.
  • Joint Retrieval: They extended the method to handle multiple inner products simultaneously (essential for neural networks) by leveraging finite field theory ($\mathbb{F}_{2^m}$) and partitioning the field into low-dimensional real subspaces.
  • Coefficient Complexity: To handle more complex quantized sets (beyond just $\pm 1$), the authors utilized a combinatorial tool called "coefficient complexity." This allows them to build a "dictionary" for any finite set of weights, representing them as linear combinations of simpler binary vectors.
  • Polynomial Decoding: The server retrieves the final result by combining the user's responses using a decoding polynomial.

Datasets

As a theoretical contribution to information theory and communication, this paper does not use standard empirical machine learning datasets (like ImageNet or CIFAR-10). Instead, it uses synthetic mathematical constructions and illustrative examples (e.g., Example 1 and Example 4 in the text) to prove the correctness and optimality of the proposed protocols.

Key Insights and Ideas

  • The Privacy Tradeoff: The most significant "aha moment" is the derivation of a fundamental tradeoff: $I(W; Q) + \ell \cdot \log |A| \ge n \cdot \log |A|$. In plain English: you cannot increase the privacy of the model (server) without decreasing the privacy of the data (user), and vice versa. There is a fixed "budget" of privacy determined by the model's size and quantization level.
  • PIR Inversion: In standard PIR, the server is the "dumb" database and the user is the "active" querier. This paper successfully flips that script, making the server the active party that sends queries to the user's data "database."
  • Quantization as a Feature, Not a Bug: While quantization is usually seen as a way to save memory, this paper shows it is the key to enabling information-theoretic privacy. Because the weights are finite, the server can "mask" them in ways that are mathematically impossible with continuous, real-valued weights.

Key Results

  • Optimality for Binary Models: For weights in $\{\pm 1\}$, the authors' protocols are perfectly optimal. They achieve the minimum possible communication cost and hit the theoretical limit of the privacy tradeoff.
  • General Tradeoff Bound: The paper provides a universal lower bound for any finite weight set $A$, proving that the dimension of the revealed data subspace ($\ell$) is strictly linked to the information leaked about the model weights.
  • Joint Retrieval Efficiency: The joint retrieval protocol for multiple signals achieves optimal privacy tradeoffs for a wide range of parameters, specifically when the number of subsets $t$ is at least $2^{m-1}$.

Limitations and Future Work

  • The "Hard Set" Gap: While the protocols work for "perfect sets" (like standard midriser quantizers), they are currently sub-optimal for "hard sets"—quantized sets that lack a compact binary representation.
  • The $\{0, \pm 1\}$ Problem: The authors provide a protocol for weights that include zero, but they acknowledge that its optimality is still unclear and requires further study.
  • Approximate Inference: The current work focuses on exact retrieval of the inner product. The authors suggest that if a user only needs an approximate answer, they might be able to "break" the privacy tradeoff barrier, potentially offering better privacy for both parties simultaneously. This remains an open research direction.

Summary updated

BibTeX
@article{deng2025private,
  author = {Zirui Deng and Vinayak Ramkumar and Rawad Bitar and Netanel Raviv},
  title = {{Private Inference in Quantized Models}},
  journal = {IEEE Trans. Information Theory},
  year = {2025},
  url = {https://openreview.net/forum?id=a4i7iqA4md},
}
Figure