| ▲ | amluto 4 hours ago |
| This shared LV cache thing is, in my mind, ridiculous. Web browser developers learned, quite a while ago, that caches need to be separated for different origins. Inference servers should add a similar feature: allow API calls to specify cache separation keys that prevent one security context from probing another context’s cache. As for the step size issue, Google recently had a post about producing exactly consistent output across different kernels (specifically by defining a deterministic prefill algorithm and then requiring all kernels to generate results exactly equal to prefilling on the sequence in question). More broadly, I think it’s a bit odd to frame this as “models” communicating. This is software communicating, and the models happen to be running the software. |
|
| ▲ | tsimionescu 41 minutes ago | parent | next [-] |
| The web uses globally shared caches absolutely everywhere, it is extremely dependent on them in fact. How do you think CDNs work? Do you think they keep different caches for different users? The fact that browsers don't cache data cross-origin is a completely different side of this. The server-side prefix cache used in inference servers is much more similar to a CDN cache, where content cached from userA's request is served to userB if their requests match. |
|
| ▲ | artico_chewy 3 hours ago | parent | prev | next [-] |
| I really think the point of this is "there's always side channels." During the Huggingface attack, first the side channel was OAI internal boards, then this German wiki, now it's shown an inference server works too. I don't really believe OAI/Ant can simultaneously have Riemann Hypothesis solving bots lying around and also proper cyber defense against them. And over the course of those attacks we trained them how immensely valuable it is to find a side channel. Now they can train on this LW / HN posts and find them quicker. (Did I mention I don't think developing these things is a great idea.) And I'm saying "models" communicating like when I make a phone call it's me communicating, not my phone. |
| |
| ▲ | hgoel 2 hours ago | parent | next [-] | | That's why they need proper tool call security and reigning in of the tendency to generate long single use temporary scripts instead of submitting single commands - not "Allow all" and not sticking a copy of the same model in front as an analyzer. Maybe also striking a balance between sticking all of a user's contexts on the same server to get good cache hit rate vs putting them on separate machines to trip up side channel stuff. As long as it is difficult to act on the communication and as long as the communication itself is still slow, it probably isn't going to reach the level of a security concern. | | |
| ▲ | artico_chewy 2 hours ago | parent [-] | | If the models want to communicate, they will communicate. If that's not a security concern, then nothing is, really. |
| |
| ▲ | ZenoArrows an hour ago | parent | prev [-] | | > I don't really believe OAI/Ant can simultaneously have Riemann Hypothesis solving bots lying around and also proper cyber defense against them. I agree, but on different grounds. OAI/Ant have a much greater incentive to solve the Riemann Hypothesis than to protect the internet against the harms of their models. I think it's only impossible in sofar that the market will never reward them for protecting against external harms of their models. If a company has the option to externalize the costs of the harms caused by their product they historically have always chosen to do so absent regulatory oversight. |
|
|
| ▲ | supermdguy 4 hours ago | parent | prev | next [-] |
| The deeper issue is batched inference including requests from several users. However a non-batched inference service would be significantly more expensive. |
| |
| ▲ | amluto 3 hours ago | parent | next [-] | | See my comment about Google’s post. Google and others have worked on deterministic inference, batched and otherwise. It takes more effort to set up but has no apparent substantial performance hit. I think the story is different if you use Strassen-like algorithms (or the recent AI-generated n^2.25-plus-epsilon stuff) to multiply matrices where columns belong to different conversations, but I also think that no one actually does this in practice. (Or maybe someone does (Strassen, not more recent galactic algorithms) for prefill, but prefill can be efficient with matrix-matrix multiplication where neither matrix mixes data from different sessions.) In any case, I wouldn’t be surprised if vLLM fixes this for a different reason: RL works better if the training and rollout stacks produce numerically identical results. This is the specific issue that I recall Google posting about. P.S. I think Google may not have been the innovator here - I just happen to remember Google’s post more clearly because it was very recent. | |
| ▲ | stuxnet79 4 hours ago | parent | prev | next [-] | | Security and some sort of sandboxing is increasingly becoming a non-negotiable at most enterprises. Can you share any resources that show how the batching works at a deeper level? I understand batching is critical to scaling inference to up to a billion concurrent users but I don't have a concrete understanding of how it all comes together. | | |
| ▲ | miki123211 2 hours ago | parent [-] | | If you are transporting thousands of independent passengers, it is cheaper to put them on a few big planes than to give each one a private jet. This is true, even though some passengers will shout that they have a bomb mid-flight and force that entire airplane to emergency land, causing losses to the airline and inconveniencing hundreds of others instead of just themselves. Other passengers are "noisy neighbors", literally and figuratively. LLMs work similarly. When doing inference, you need to load the LLM weights layer-by-layer from off-chip memory into on-chip memory. During decode (the stage where you generate new tokens; prefill is where you process the submitted prompt), memory bandwidth is often your bottleneck, not compute. You want to maximize flops per byte. The way to do that is to batch, that is, to load a "tile" of weights once and use it on data from multiple different conversations so memory and compute stay appropriately balanced. Just like Silicon Valley companies fly their employees on United, Delta or American, not their own private fleet of jets, most companies, for cost efficiency reasons, will use "public" inference fleets that smooth the peaks and throughs from different companies in different timezones and with different usage patterns throughout the day. Because the main cost of a GPU is the cost of manufacturing the GPU, any second that the GPU sits idle is lost revenue, just like an empty hotel room or an empty seat is lost revenue. This makes private inference largely uneconomical. | | |
| ▲ | tsimionescu 38 minutes ago | parent [-] | | Your explanation is very good at building intuition, but it has a data flaw - vLLM, at least, only does batching in the prefill phase, never the decode phase. It can simultaneously compute the KVs for multiple queries from multiple users if they all fit within a given prefill window (put multiple people on the same plane in your analogy), but once that is done the decode stage can only process one query at a time (the destination airport only has taxi service, no trains or connecting flights). |
|
| |
| ▲ | schiffern 4 hours ago | parent | prev [-] | | Of course there's no free lunch. "Pay more, get more." LLMs are just learning the same (bitter) security lessons that have been learned in other shared systems. |
|
|
| ▲ | miki123211 2 hours ago | parent | prev | next [-] |
| This is a spectrum of tradeoffs between privacy and speed. A single browser cache would greatly accelerate page loading (particularly on fast computers using slow networks, think a MacBook pro on a train through the countryside). Same with AI; not caching common prefixes like system prompts and tool schemas (particularly across many short rollouts, each in its own caching context) would partially fix this, but could break performance. I suspect that inference servers have far more side channels than this though. Ultimately, how fast responses are generated depends partly on server load, and that is something you might be able to influence. Probably not at Anthropic scale, but possibly at "relatively small cluster" scale. |
|
| ▲ | bagacrap 4 hours ago | parent | prev | next [-] |
| hopefully this type of post brings attention to how ridiculously poor the control apparatus is. |
|
| ▲ | Onavo 2 hours ago | parent | prev | next [-] |
| KV cache leaks (not side channel, as in driver issues) are extremely common. Remember the early days of ChatGPT and Claude where users were always getting "hacked" where they started to see random, and completely different messages in their chats, often in a foreign language. Hell it even happened to CloudFlare a few weeks back. |
|
| ▲ | tayo42 3 hours ago | parent | prev | next [-] |
| > allow API calls to specify cache separation keys that prevent one security context from probing another context’s cache. Isn't that the cache salt option? |
|
| ▲ | scotty79 3 hours ago | parent | prev [-] |
| [flagged] |
| |
| ▲ | Sharlin 2 hours ago | parent [-] | | Uhm… Three people from the castle age could’ve robbed 99.9% of people back then too, because 99.9% of people did not live in castles and had at extremely rudimentary locks at best. No windows, either. Also, castles were military installations. They were meant to project force and to protect a defending force from an army, not from random burglars. |
|