Imagine you’re at a high-end library. To speed things up, the librarian keeps copies of popular book chapters on the front desk. If you ask for a common chapter, you get it instantly. If not, you wait while they go to the stacks.
Sounds efficient, right? But there’s a catch: if you get your chapter instantly, you know someone else just asked for it. In the world of Large Language Models (LLMs), this "instant" response is a prefix cache hit, and that tiny timing difference is a side channel that can leak private data.
TL;DR
Isonomy is a new system that lets LLM providers share prompt caches globally to save money and energy, while making it mathematically impossible for one user to "probe" what another user is typing. It achieves this by cleverly delaying responses to match a hypothetical "cache miss" time, retaining up to 98% of the throughput of a completely insecure system.
What Problem Does This Paper Address?
LLMs are expensive to run. To save time, providers use prefix caching: if multiple users start their prompts with the same text (like a system prompt or a long legal document), the model only processes that "prefix" once and reuses the results. This happens during the prefill stage—the part where the model "reads" your prompt before it starts "writing" the answer.
The problem is timing. If a request hits the cache, the first token of the response arrives much faster. An attacker can use this to see if a specific piece of private text—say, a confidential internal memo—is already in the provider's cache.
Currently, providers try to fix this by only sharing caches within a single "account." But the authors argue this is a weak shield. AI agents, resellers, and stolen API keys often result in many untrusted users sharing one account. The authors propose a "least privilege" approach: every single request should be isolated by default, even if they come from the same user, without trashing the performance gains of caching.
Methods
The core idea of Isonomy is to make a cache hit look exactly like a cache miss to anyone watching the clock. It does this by creating a "miss twin": a hypothetical version of your request that didn't find anything in the cache.
Isonomy uses two main modes to manage this:
- Prediction Mode: The system predicts exactly how long the "miss twin" would have taken to run based on current server load. It then uses a randomized gate to hold onto your fast "hit" response and release it only when the predicted "miss" time arrives.
- Execution Mode: Instead of just waiting, the server actually schedules a "virtual request" (a slot) that takes up the exact amount of time the cache hit saved.
To keep efficiency high in Execution Mode, Isonomy doesn't just waste that "virtual" time. It tries to find substitutes—other real requests waiting in the queue—and runs them inside that reserved slot. This way, the "padding" time actually does useful work for someone else.
Datasets
The authors evaluated Isonomy using several realistic workloads:
- Session Workload: 40,000 requests mimicking long-running conversations where users frequently reuse previous context.
- Constructed Workload: A dataset designed to emphasize reuse of shared documents across different accounts.
- Mooncake Trace: A public dataset of real-world LLM conversation patterns.
- Commercial API Testing: They also ran "load visibility" tests on Anthropic (Claude), OpenAI (GPT), and Google (Gemini) to see if external users could detect background server work (spoiler: they generally couldn't).
Key Insights and Ideas
- Load Visibility is Low: One of the most surprising findings is that on major commercial LLM clouds, you can't really tell what's happening on the server by timing your own requests. This means "indirect" attacks (detecting a hit because the server got slightly busier) are currently much harder than "direct" timing attacks.
- Routing is the Secret Sauce: To hide a hit, you must route the request to the same server instance where the "miss twin" would have gone. Isonomy’s gateway calculates this "miss" route using only information that is public or visible to the user's specific group.
- Sharing without Trust: Isonomy proves you don't need to trust other users to benefit from their cached work. You can "steal" their computation (to save the provider money) without "stealing" their privacy.
Key Results
- Security: In "direct-probe" tests (where an attacker tries to guess if a prefix is cached), Isonomy reduced the attacker's advantage to the level of random background noise.
- Throughput: Prediction mode is a powerhouse. It retains 98.4% of the throughput of a totally unprotected (and insecure) system.
- Comparison: Compared to the standard "isolation by account" method, Isonomy is both more secure (isolating every request) and often faster, especially in scenarios where many different accounts use the same documents.
Limitations and Future Work
- Gateway Bottlenecks: Currently, the Isonomy gateway is a single process. For massive clusters (thousands of GPUs), the authors suggest it would need to be "sharded" (split up) to keep up with the traffic.
- Content-Dependent Timing: Some models (like Mixture-of-Experts) take different amounts of time depending on the content of the prompt, not just the length. Isonomy includes some fixes for this, but more complex models might require even more sophisticated "miss twin" simulations.
- Physical Side Channels: The paper focuses on network timing. It doesn't address "physical" side channels like power consumption or electromagnetic leaks, which are much harder to exploit in a cloud environment but still theoretically possible.
Summary updated