← Latest papers
🤖 AI

SharedRequest: Privacy-Preserving Model-Agnostic Inference for Large Language Models

The paper proposes SharedRequest, a model-agnostic framework that enhances privacy-preserving LLM inference by obscuring sensitive prompts through mixing and batching semantically equivalent queries, thereby achieving superior utility and up to 5x cost reduction without requiring model modifications.

Original authors: Peihua Mai, Xuanrong Gao, Youlong Ding, Xianglong Du, Wei Liu, Yan Pang

Published 2026-06-04
📖 5 min read🧠 Deep dive

Original authors: Peihua Mai, Xuanrong Gao, Youlong Ding, Xianglong Du, Wei Liu, Yan Pang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you want to ask a super-smart AI (like a digital oracle) a question, but your question contains a secret—maybe your specific job title, a medical condition, or a financial detail. You don't want the AI company to know that secret, but you still need a good answer.

Currently, trying to hide your secret usually means one of two bad things:

  1. The "Blurry Photo" approach: You scramble your words so much that the AI gets confused and gives you a bad answer.
  2. The "Heavy Lock" approach: You use complex math to lock your question. This keeps it safe, but it's so slow and expensive that it's hard to use for big groups of people.

The paper introduces a new system called SharedRequest. Think of it as a clever "group chat" strategy that solves both problems at once.

The Core Idea: The "Group Order" Analogy

Imagine you and 99 friends all want to buy a custom cake from a bakery (the AI).

  • The Problem: You all want different flavors, but you are worried the baker will see your specific order and guess your personal secrets (e.g., "I'm ordering a gluten-free cake because I have Celiac disease").
  • The Old Way: You each send your order separately, scrambling your words so the baker can't read them. This is slow, expensive, and the baker might still get confused by the scrambled words.
  • The SharedRequest Way:
    1. Grouping: The system notices that 50 of you just want "Chocolate Cake" and 50 want "Vanilla Cake." It groups you together based on what you want to do (the generic instruction), not who you are.
    2. The Mix-Up: For the "Chocolate" group, the system takes your real order ("Gluten-free chocolate cake for [Name]") and mixes it with 10 fake orders ("Gluten-free chocolate cake for [Fake Name 1]", "Regular chocolate cake for [Fake Name 2]", etc.).
    3. The Batch: The bakery receives a giant, shuffled pile of 60 chocolate cake orders. They can't tell which one is yours and which ones are fakes. They bake the cake once for the whole group (saving money) and hand out the answers.
    4. The Result: You get your specific answer, but the bakery only sees a jumbled mess of similar requests. Your secret is hidden in the crowd.

How It Works (The Three Characters)

The system uses three parties to make this magic happen:

  1. You (The User): You send your question. You hide your secret parts (like your name or job) by encrypting them (putting them in a locked box).
  2. The Noise Sampler (The Middleman): This is a trusted third party (like a privacy guardian). They receive your locked box. They look at the type of question you asked (e.g., "Find a restaurant") but cannot see your secret. They then:
    • Find other people asking the same type of question.
    • Generate fake "noise" versions of your secret (e.g., if your secret is "Cybersecurity," they generate fake versions like "Marketing" or "Accounting").
    • Mix your real secret with the fake ones and shuffle them all together.
  3. The Service Provider (The AI Bakery): They receive the giant, shuffled pile of mixed questions. They answer them all. Because they can't tell which question belongs to whom, your privacy is safe. They send the answers back to the Middleman, who passes the correct one to you.

Why Is This Better?

The paper claims this method is a "win-win" for three reasons:

  • It's Smarter (Better Utility): Unlike other methods that scramble your words and ruin the answer, SharedRequest keeps the meaning of your question intact. The AI understands you perfectly because the "noise" is just a mix of similar, plausible options, not gibberish. The authors say it works 20% better than previous privacy methods.
  • It's Cheaper (Cost Amortization): Because the AI processes the whole group at once, the cost of generating the "fake" questions is shared among everyone. If 1,000 people ask similar questions, the cost per person drops dramatically. The paper says this can make queries 5 times cheaper than asking individually.
  • It's Flexible (Model-Agnostic): You don't need to change how the AI is built. It works with any existing AI model (like ChatGPT or Gemini) without needing the company to install special software.

The Safety Net

The paper also addresses a tricky problem: What if the "Noise Sampler" and the "AI Bakery" team up to cheat?

  • The authors propose a stronger version where there are multiple Noise Samplers. To break your privacy, they would all have to collude (work together) at the exact same time. If even one of them is honest, your secret stays safe.

Summary

SharedRequest is like going to a crowded concert to hide in plain sight. Instead of whispering your secret to the DJ (the AI) alone, you join a massive group where everyone is asking similar questions. The DJ hears a roar of similar requests and can't pick out your specific voice, but you still get your song played perfectly. It's faster, cheaper, and keeps your secrets safe without making the AI "dumb."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →