Local models now protect your privacy while still accessing powerful LLM capabilities
Chain small and large LLMs to get best performance while keeping data private
π Original Problem:
Users share sensitive personal information with proprietary LLMs during inference, raising privacy concerns. While local open-source models help with privacy, they perform worse than proprietary models.
π οΈ Solution in this Paper:
β’ PAPILLON: A multi-stage pipeline where local models act as privacy-conscious proxies
β’ Uses DSPy prompt optimization to find optimal prompts for privacy preservation
β’ Two key components:
Prompt Creator: Generates privacy-preserving prompts
Information Aggregator: Combines responses while protecting PII
Created PUPA benchmark with 901 real-world user-LLM interactions containing PII
π‘ Key Insights:
β’ Simple redaction significantly lowers LLM response quality
β’ Privacy-conscious delegation can balance privacy and performance
β’ Smaller local models can effectively leverage larger models while protecting privacy
β’ Prompt optimization improves both quality and privacy metrics
π Results:
β’ Maintains 85.5% response quality compared to proprietary models
β’ Restricts privacy leakage to only 7.5%
β’ Outperforms simple redaction approaches
β’ Shows consistent improvement across different model sizes
PAPILLON uses a multi-stage pipeline with:
A Prompt Creator that generates privacy-preserving prompts
An Information Aggregator that combines responses
Uses prompt optimization with DSPy to find optimal prompts
The system aims to maintain high response quality while minimizing privacy leakage.
π How is privacy leakage measured?
The system uses:
Quality Preservation metric comparing outputs to proprietary model responses
Privacy Preservation metric measuring percentage of PII leaked
LLM judges and crowd-sourcing validation for robustness.



