Onyx: Cost-Efficient Disk-Oblivious ANN Search
Onyx is a cost-efficient, disk-oblivious Approximate Nearest Neighbor (ANN) search system that achieves significant reductions in latency and cost by inverting traditional design trade-offs, utilizing a bandwidth-efficient ANN layer with proactive pruning and a locality-aware ORAM layer to minimize both disk access patterns and bandwidth consumption on third-party infrastructure.
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 have a massive, highly sensitive library of books (your data) that you want to keep safe. You don't have enough space in your own house (your computer's memory) to store all of them, so you rent a warehouse (a cloud server) to keep them.
The problem? The warehouse owner is untrustworthy. They can't read the books because they are locked in steel boxes (encryption), but they can watch which boxes you open and when. By watching your habits—like "Oh, he always opens Box A, then Box B, then Box C"—the owner can guess what you are looking for, even without seeing the contents. This is called an access pattern leak.
To stop this, you need a system that makes your movements look random, like a magician shuffling cards so no one can tell which card you picked. This is called ORAM (Oblivious RAM). But here's the catch: doing this magic shuffle is incredibly slow and expensive. It's like hiring a team of 100 people just to walk you to the library door so no one sees which shelf you go to.
Onyx is a new system designed to make this "magic shuffle" fast, cheap, and practical. Here is how it works, broken down into simple concepts:
1. The Old Way: The "Heavy Box" Problem
In previous systems (like the one called Compass), the library was organized like a giant maze. To find a book, you had to walk through many corridors.
- The Flaw: The old system tried to be smart by grabbing huge boxes (blocks of data) at once to save time walking. But in the "magic shuffle" world, grabbing a huge box is actually a disaster. It wastes a lot of bandwidth (like trying to carry a sofa through a narrow hallway) and makes the "shuffling" process incredibly slow and expensive.
- The Result: It was so slow and costly that only the richest companies could afford it, and even then, it took seconds to find a single book.
2. The Onyx Solution: "The Two-Step Dance"
Onyx changes the rules by splitting the job into two specialized teams that work together perfectly. Think of it like a Detective and a Librarian.
Step A: The Detective (Onyx-ANNS)
The Detective's job is to find the right books without carrying heavy boxes.
- The Old Way: The Detective would grab a massive box containing the book's full text and its location map just to check if it's the right one.
- The Onyx Way: The Detective grabs a tiny, lightweight "clue card" (a compact hint) first. This card tells them, "Hey, this book is probably what you want."
- The Magic: The Detective only grabs the heavy, full-text box if the clue card says "Yes, definitely." This means they spend 90% of their time carrying tiny cards and only occasionally carrying heavy boxes. This saves a massive amount of energy (bandwidth).
Step B: The Librarian (Onyx-ORAM)
The Librarian's job is to hide the Detective's movements from the warehouse owner.
- The Old Way: The Librarian was trying to hide the movement of those massive boxes. It was hard to shuffle big boxes quickly without making noise.
- The Onyx Way: Since the Detective is mostly carrying tiny cards, the Librarian only needs to shuffle tiny cards.
- The Innovation: Onyx uses a special "shallow tree" structure (like a wide, flat pyramid instead of a tall, skinny one). This allows the Librarian to move many tiny cards at once in a very organized, efficient way. Because the boxes are small, the Librarian can move them incredibly fast.
3. Why It's a Game Changer
By swapping the roles, Onyx creates a perfect match:
- The Detective is great at guessing which tiny cards to fetch (saving bandwidth).
- The Librarian is great at shuffling those tiny cards quickly (saving time and money).
The Analogy:
Imagine you are trying to find a specific grain of sand on a beach.
- The Old Way: You bring a giant shovel and scoop up a whole bucket of sand every time you take a step, hoping the grain is there. It's slow, and everyone sees you carrying heavy buckets.
- The Onyx Way: You use a metal detector (the tiny clue card) to beep when you are close. You only dig with the shovel (the heavy box) when the detector beeps. You walk lightly, carrying almost nothing, and the person watching you can't tell what you are looking for because your path looks random and light.
The Results
Because of this clever teamwork:
- Speed: It finds answers 2 to 12 times faster than the previous best systems.
- Cost: It costs 2 to 10 times less to run.
- Scale: It can handle millions of users and billions of data points without breaking the bank.
In short, Onyx takes a technology that was previously too slow and expensive for real-world use and makes it fast enough to power the next generation of private AI assistants, secure search engines, and private data stores. It proves that you can have privacy without sacrificing speed or breaking the bank.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.