Rethinking Privacy in Machine Learning Pipelines from an Information Flow Control Perspective

Lukas Wutschitz, Boris Köpf, Andrew Paverd, Saravan Rajmohan, Ahmed Salem, Shruti Tople, Santiago Zanella-Béguelin, Menglin Xia, Victor RühlearXiv 2023 · DOI · arXiv

Executive Summary

Modern Large Language Models (LLMs) are prone to memorizing training data, creating significant privacy risks. While Differential Privacy (DP) is the standard defense, it often compromises model utility and struggles with complex access control policies. This paper proposes a shift toward Information Flow Control (IFC), demonstrating that Retrieval-Augmented Generation (RAG) provides a superior architecture for privacy. By decoupling reasoning from knowledge, RAG ensures strict "non-interference" guarantees while outperforming traditional fine-tuning in both utility and scalability.

The Limitations of Differential Privacy

Differential Privacy (DP) operates by adding noise during the training process to bound the influence of any single data point. However, this approach has several drawbacks:

  1. Utility Trade-offs: The noise required for strong privacy often degrades the model's performance significantly.
  2. Static Guarantees: DP is essentially a "declassification" event. Once a model is trained and the privacy budget is spent, updating it with new data is difficult.
  3. Metadata Neglect: In real-world scenarios, data is governed by Access Control Lists (ACLs). DP typically ignores these existing policies, treating all private data as a monolithic block.

Information Flow Control in ML

To address these gaps, the authors frame the problem using Information Flow Control (IFC). They define a property called probabilistic non-interference: a system is secure if its output for a specific user remains identical regardless of any changes made to data that the user is not authorized to see.

Figure 1: A conceptual framework for an ML model that respects privacy labels (P) for datasets and queries, ensuring the output (O) adheres to required security policies.

In this framework, every piece of data $D$ is associated with a privacy label $P$. The goal is to ensure that the model output $O$ only reflects information the requester is authorized to access, effectively treating the ML model as a secure pipe rather than a black box that leaks training data.

The Scalability Challenge of Personalization

One theoretical way to achieve perfect privacy is to train "Personalized Models"—separate models for every possible combination of users and permissions. However, this approach faces a massive scalability trap. As the number of users $n$ grows, the number of potential permission groups (the "lattice" of subsets) grows exponentially ($2^n$).

Figure 2: The lattice of permission groups. Managing separate models for every combination of users (e.g., Alice, Bob, Charlie) becomes computationally impossible as the user base scales.

Training and storing a unique model for every node in this lattice is computationally impossible for large organizations. This necessitates a more flexible architecture.

Retrieval-Augmented Generation: A Privacy-First Architecture

The authors advocate for Retrieval-Augmented Generation (RAG) as the most effective way to implement IFC. RAG uses a public base model that retrieves specific, authorized documents from a database only at inference time.

This architecture offers three key advantages:

  • Decoupling: It separates "reasoning" (the frozen model weights) from "knowledge" (the retrieval database).
  • Instantaneous Access Control: If a user's permissions are revoked, the system simply stops retrieving those documents for them. No retraining or "unlearning" is required.
  • Strict Non-interference: Unlike DP, which allows for a small amount of leakage, RAG ensures that unauthorized data has zero impact on the output because that data is never even seen by the model during the generation process for that specific query.

Key Results and Utility

The study tested these architectures on large-scale scientific corpora (Elsevier and Arxiv), focusing on language modeling tasks like predicting abstracts.

  • Superior Performance: RAG models consistently achieved lower perplexity (higher accuracy) than zero-shot and full fine-tuning baselines. On the Elsevier dataset, RAG achieved a perplexity of 8.60, significantly better than the 10.9 achieved by the zero-shot model.
  • Contextual Gains: The most significant performance boost occurred when the model could retrieve the specific article body to predict its abstract (perplexity of 7.40). Even when retrieving only "related" articles by the same authors, RAG outperformed generic global models.

Conclusion and Future Work

By moving from the "fuzzy" boundaries of Differential Privacy to the strict guarantees of Information Flow Control, developers can build ML systems that respect existing organizational security policies. While RAG introduces dependencies on retriever quality and inference latency, its ability to provide instantaneous, scalable, and high-utility privacy makes it the most promising path forward for secure machine learning pipelines.

Summary updated

Abstract

Modern machine learning systems use models trained on ever-growing corpora. Typically, metadata such as ownership, access control, or licensing information is ignored during training. Instead, to mitigate privacy risks, we rely on generic techniques such as dataset sanitization and differentially private model training, with inherent privacy/utility trade-offs that hurt model performance. Moreover, these techniques have limitations in scenarios where sensitive information is shared across multiple participants and fine-grained access control is required. By ignoring metadata, we therefore miss an opportunity to better address security, privacy, and confidentiality challenges. In this paper, we take an information flow control perspective to describe machine learning systems, which allows us to leverage metadata such as access control policies and define clear-cut privacy and confidentiality guarantees with interpretable information flows. Under this perspective, we contrast two different approaches to achieve user-level non-interference: 1) fine-tuning per-user models, and 2) retrieval augmented models that access user-specific datasets at inference time. We compare these two approaches to a trivially non-interfering zero-shot baseline using a public model and to a baseline that fine-tunes this model on the whole corpus. We evaluate trained models on two datasets of scientific articles and demonstrate that retrieval augmented architectures deliver the best utility, scalability, and flexibility while satisfying strict non-interference guarantees.
BibTeX
@misc{wutschitz2023rethinking,
  author = {Lukas Wutschitz and Boris Köpf and Andrew Paverd and Saravan Rajmohan and Ahmed Salem and Shruti Tople and Santiago Zanella-Béguelin and Menglin Xia and Victor Rühle},
  title = {{Rethinking Privacy in Machine Learning Pipelines from an Information Flow Control Perspective}},
  year = {2023},
  eprint = {2311.15792},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.15792},
}
Figure