OTRO: Oblivious Tokenization Path with Square-Root ORAM
OTRO is an efficient, oblivious tokenization system designed for confidential LLM serving that mitigates side-channel leaks from memory access patterns by leveraging a pool of square-root ORAM instances with epoch-based rotation and chunked KV-cache-aware overlap, achieving near-zero latency overhead while significantly reducing observable leakage.
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 are sending a secret letter to a friend through a highly secure, glass-walled post office. The post office is run by a "Trusted Execution Environment" (TEE), which is like a super-secure vault where your letter is locked in a safe box that no one—not even the post office manager—can open. They can't read the words inside.
The Problem: The "Token" Translator
Before your letter can be processed, it has to be translated into a code the computer understands. This is done by a tool called a Tokenizer. Think of the Tokenizer as a translator who looks up every word in your letter in a giant, fixed dictionary to find its secret code number.
Here's the catch: Even though the words are locked in the safe, the pattern of the translator's finger movements is visible.
- If you write "The cat," the translator looks up "The," then "cat."
- If you write "The dog," the translator looks up "The," then "dog."
A sneaky spy (like a malicious cloud server admin) watching the translator's finger movements can see exactly which dictionary pages are being touched. By watching the order and frequency of these "lookups," the spy can reconstruct your original letter, even though they never saw the words themselves. This is called a side-channel attack.
The Old Solution: The "PathORAM" Shuffle
To stop the spy, researchers previously tried using a method called PathORAM. Imagine this as a magical library where, every time you ask for a book, the librarian doesn't just fetch it; they also shuffle every single book in the entire library to a new random spot. This makes it impossible to tell which book you actually wanted.
- The Result: It works perfectly for security, but it's incredibly slow. It's like asking for a book and having to wait while the librarian reorganizes the whole building. In the paper, this made the system 13 times slower, causing a huge delay before the AI could even start talking to you.
The New Solution: OTRO (The "Rotating Library" System)
The authors of this paper, OTRO, realized that the dictionary the translator uses never changes. The words are always the same; only the order in which the spy watches them changes.
They built a smarter system using three clever tricks:
- The Pool of Identical Libraries: Instead of one library that gets shuffled constantly, OTRO creates a pool of identical libraries. Imagine having 50 copies of the same dictionary.
- The "Shift" System: When the translator needs to look up words, they use Library #1. Once Library #1 has been used a specific number of times (say, 1,000 lookups), the translator quietly switches to Library #2.
- The Magic: While the translator is busy using Library #2, a background worker is secretly and slowly reorganizing Library #1 in the shadows. Because the worker is doing this while the translator is busy with the next library, the reorganization never slows down the translator.
- Chunking the Letter: For very long letters, OTRO breaks the letter into small chunks. It translates the first chunk while the GPU (the AI's brain) is already starting to think about it. This allows the "reorganizing" work to happen in the background without ever stopping the main process.
The Results
- Speed: Because the heavy "reorganizing" work happens in the background, the system is almost as fast as the original, insecure version. The paper shows it only slows things down by about 4.5%, which is barely noticeable.
- Security: The spy can no longer see which specific words were looked up. All they can see is that "a lookup happened." The only thing the spy can still guess is how long your letter was (because longer letters require more lookups), but they cannot guess what the letter said.
- Memory: It uses a bit more memory (less than half a gigabyte per user), which is a small price to pay for keeping your secrets safe.
In Summary
OTRO is like hiring a team of translators who rotate shifts. While one translator is working, another is quietly shuffling the books in the background. This way, the spy watching the door can't tell which book was picked, but the work gets done almost instantly. It turns a security problem that used to make the system 13 times slower into a solution that is nearly instant.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.