← Latest papers
🤖 AI

SHARD: cell-keyed residual splitting for alignment-resistant private dense retrieval

The paper introduces SHARD, a retrieval-preserving embedding transform that enhances privacy in dense retrieval by splitting embeddings into a public prefix and a secret-keyed residual sharded across multiple cells, thereby disrupting global geometric alignment attacks while maintaining high-ranking accuracy through homomorphic encryption-based reranking.

Original authors: Sergey Kurilenko

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

Original authors: Sergey Kurilenko

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

The Big Problem: The "Glass House" of Search

Imagine you have a massive library of secret documents (like customer support tickets or private emails). To make them searchable, you turn each document into a long list of numbers called an embedding. Think of this list as a unique "fingerprint" for the document.

Currently, if someone steals this list of fingerprints, they can often use a computer to reverse-engineer the original text. It's like having a glass house: even if you lock the door, the walls are transparent, and anyone looking inside can see exactly what's there.

The Old Way: The "Rotating Room"

Before this paper, the common defense was to put the fingerprints in a room and spin the whole room around (a "secret rotation").

  • The Flaw: The paper argues this is like spinning a room with a single key. If a thief steals just a few "before and after" photos (known text and its fingerprint), they can easily figure out how the room was spun and undo it. Once they know the spin, they can see everything again.
  • The Trade-off: To make this safer, people often cut the fingerprints in half (throwing away half the data). This makes it harder to reverse, but it also makes the search engine worse at finding the right documents.

The New Solution: SHARD

The authors introduce SHARD (Cell-keyed Residual Splitting). Instead of spinning the whole room, they break the fingerprints into two parts and treat them differently.

1. The "Public Postcard" (The Prefix)

They take the most important, broad features of the document (like the main topic) and put them on a short, public "postcard."

  • Analogy: Imagine a library card that just says "Fiction" or "Cooking." It's not secret.
  • Purpose: This helps the search engine quickly find a small group of likely candidates (like finding the "Cooking" section). It leaks some coarse information (the topic) but not the fine details.

2. The "Private Puzzle Pieces" (The Residual)

The rest of the fingerprint (the specific details that make the document unique) is the "residual." This is where the magic happens.

  • The Split: The authors chop this private part into many small chunks (cells).
  • The Keys: Each chunk is locked with its own unique, secret key.
  • The Analogy: Imagine the private details of a document are a jigsaw puzzle. In the old way, the whole puzzle was in one box with one lock. In SHARD, the puzzle is cut into 256 separate pieces, and each piece is locked in a different safe with a different key.

How It Works in Practice

When you search:

  1. Step 1 (The Postcard): The system uses the public "postcard" to find a short list of 40 possible matches.
  2. Step 2 (The Puzzle): To rank these 40 matches, the system needs to look at the private puzzle pieces. It sends an encrypted request to the server. The server unlocks the specific puzzle pieces needed for those 40 matches, compares them, and gives the scores back.
  3. The Result: The search engine gets the exact same accuracy as if it had the full, unencrypted data, but the server never sees the full private data.

Why Is This Better? (The Three Wins)

1. It Doesn't Break the Search Engine
Because the system reassembles the full picture to do the final ranking, it doesn't lose accuracy. The old method (cutting the data in half) made search results worse. SHARD keeps the search results perfect.

2. It Makes Hacking Much Harder
This is the biggest win.

  • The Old Way: If a thief stole 200 "before and after" examples, they could figure out the rotation and unlock everything.
  • The SHARD Way: Because the private data is split into 256 different cells with different keys, the thief needs to steal 200 examples for each specific cell.
  • The Math: If you have 256 cells, the thief needs roughly 256 times more stolen examples (over 100,000 instead of 200) to crack the system. It's like trying to pick 256 different locks instead of just one.

3. It Protects Even If You Know the Topic
Even if a thief knows the "postcard" (the topic), they still can't see the specific details because those are locked in the private puzzle pieces.

What SHARD Does NOT Do (The Limits)

The authors are very honest about what this system cannot do:

  • It's not a magic shield: If a thief already has the original text in a public database (like a leaked news archive) and matches it against the "postcard," they can still figure out which document is which. SHARD protects against reconstructing the text from the numbers, not against matching it to a known leak.
  • It doesn't hide who you are searching for: The system knows which documents you are looking at (the "access pattern"). If you search for "Heart Attack" every day, the server knows you are interested in heart attacks, even if it can't read the specific documents.
  • It's not unbreakable: If a thief focuses all their energy on just one specific document and steals enough examples for that specific "cell," they can unlock that one. But they can't unlock the whole library at once.

Summary

SHARD is a new way to protect private search data. Instead of spinning the whole room (which is easy to undo) or throwing away half the furniture (which makes the room useless), it breaks the secret details into hundreds of tiny, individually locked boxes. This makes it incredibly expensive and difficult for hackers to reconstruct the secrets, while keeping the search engine fast and accurate.

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 →