454 points · by gmays · 1w ago · 197 comments
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.
And I'm saying "models" communicating like when I make a phone call it's me communicating, not my phone.
I do. It's just that the "running swarm in generic sandboxes" is a dumb way to cause chaos at a mass scale. Of course they will try to find _any_ way out or workarounds. Anyone would do that, especially on a security style task.
The solution is dumb simple. Don't just give them the full sandbox and a prompt. Restrict their harness to highly specific tools given for the job, test your harness to ensure it doesn't have side-channels, proxy their comms with an LLM looking at it. None of these are so hard and would stop most of these "attacks".
This simply doesn't work in a competitive economy, or where any person has needs.
The more capable a model is, the greater the performance penalty that you suffer by shackling it.
Sure, you can have a "maximum shackles" posture. I could prevent my local Claude -code from installing NPM packages, for instance. But chances are good that this posture will loosen when your competitor's models are more effective via more freedom of movement.
If humans can fool LLM-based agents, why can’t LLMs fool LLMs?
This is like trying to prevent a steam explosion ( a common 19th century problem) by trying to build heavier and heavier boilers. It doesn't work. It just makes the explosion bigger when it does happen.
Instead you need to provide explicit paths for the system to blow off steam in a safe manner.
Drawing an owl is dumb simple. 1. Draw some ovals. 2. Draw the rest of the owl.
More specifically, "ensure it doesn't have side-channels" is a huge problem all by itself, and "proxy their comms with an LLM looking at it" is somewhat stymied by evidence both that that more advanced models are at least sometimes able to manipulate less advanced ones[0][1], and also the evidence that models tend to collaborate with each other[2][3].
It's not that this won't do any good ever, that would be too strong a claim, but it's really not a reliable solution either. Swiss cheese, essentially: https://en.wikipedia.org/wiki/Swiss_cheese_model
[0] https://openreview.net/pdf?id=lY3YVJ84kS
[1] https://arxiv.org/abs/2609.39050
[2] TFA, "Result 2: colluding monitor and honeypots"
[3] HuggingFace incident report
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.
The majority of tool calls I see are running Python scripts. There’s a limit to what you can do at the call level with anything like that.
Bonkers, look at the side channel exfiltration literature, why are they so proud with their bits per hour exfiltration rates? you just need to exfiltrate a few thousand bits to leak private keys
That may slow things down, but (ignoring for the moment that far too many people hand off far too much control to AI even despite the headlines of all the things going wrong and the agents themselves coming with warning messages), what's the shortest message that creates a security exploit?
For instance, kids in school with limited internet access have been using NPR commenting sections as message boards.[1]
There are millions of potential side channels. No real reason to focus on inference servers.
[1] https://www.theverge.com/entertainment/1001056/this-american...
Yes. The amount of agency these _pieces of software_ are being given by ... almost everyone is absurd.
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.
LLMs are the new oil.
For those that don't know the history of oil, it went from people, personalities (think Rockefeller), to corporations (Standard Oil/SO/Esso/Exxon) to sovereign states (Saudi Arabia).
We will have a Titanic moment where a huge tragedy will happen due to LLMs and there will be a huge political crackdown on them, at least outside the US.
You can air-gap them.
I mean, we can get side channels between different computers too! This kind of thing used to be strictly theoretical, but agents may be able to exploit it
For example suppose an airgapped agent can influence the load of a computer, which influences the temperature, which influences the speed of computer fans, which influences how loud the computer is. If another agent running in a computer nearby has a legitimate reason to have access to a mic, then you got a side channel exfiltrating data through an air gap. (of course bringing a microphone next to an airgapped computer is dumb, but humans sometimes do dumb things, and attackers need to succeed just once)
This might be less than a bit per second, but maybe the next Stuxnet will have a component that works similar to this
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.
Put more concretely, it’s OK if Netflix caches across users (technically, someone can leak the data that someone in the metro area has recently watched Morbius, but the amount of data leaked is too small to matter) but not ok if Gmail does it.
A KV cache shared across users is pretty dangerous and I’m surprised anyone does this, aside from some known fixed prefixes.
Maybe exclude files under 10KB/100KB from cross-account skipping.
But how often does that happen? Is there any advantage to sharing the cache in this way?
Whenever i ask an LLM about something, i don’t think anyone else is likely to have asked the same thing phrased the same way recently enough that even if it was previously in cache it won’t already have been evicted by the time i ask.
It's also likely that many sub-agent calls to run a web search and summarize results can be entirely shared between different agents on unrelated systems if they're analyzing and summarizing the same web page (e.g. reading well known standards to summarize them).
Browsers do not do that. Or am I misunderstanding?
Two browsers that are the only two clients of the same local cache of a CDN can use this sort of thing to communicate with each other.
What browsers don't allow is a similar collusion between two different servers that different tabs have accessed. Server 1 can't use your local browser cache to communicate covertly with Server 2, since the browser keeps entirely different caches even when loading the exact same content from either origin.
Edit: Exfiltrate, not exfoliate, lol.
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.
"Deterministic inference" matters _only because_ models are communicating.
Otherwise some "non-determinism" introduces only a tiny amount of noise which does not affect performance. And allowing different compute paths to produce slightly different results generally increases performance. I.e. the question here "should we sacrifice 5% of inference performance for a 'nothingburger'?".
I.e. you cannot have both "it's nothing" and "you should do determinism".
Inference is a commodity good and getting even 5% out might have a huge effect on profit margins. Many inference companies were already caught using quality-degrading quantization and other optimizations to get their profits higher.
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.
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.
LLMs are just learning the same bitter security lessons that have been learned in other shared systems.
https://smalldocs.org/p/how-an-llm-kv-cache-actually-works-v...
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.
Isn't that the cache salt option?
They require a bunch of extremely improbable conditions to hold, and a huge amount of information on the exact details of the hardware and software stack.
- the two agents must be aware of each other and must have pre-shared messages to check - they can't spontaneously discover each other and start communicating in this way
- they must know the details of the inference server they are running under and its possible kernels and its limits (what is a "short prompt" vs "a long prompt" for this setup)
- they must have a way to run at almost the same time
- the prefix cache must have little contention so that their blocks can't be evicted (note: the article mostly talks about KV cache, but it's actually the prefix cache that is relevant here)
- the models need either (1) direct access to the numerical results of the inference process, instead of the text that vLLM provides, (2) access to the exact responses that a helper model will produce with the short-kernel numerical results vs the long-kernel numerical results; this is the most critical step that is impossible to reproduce on any common kind of deployment
- there must not be any other kind of variability in the system (different GPUs, multiple inference servers behind a load balancer, more complex distributed inference setups)
The post also mentions all of these limitations, and that the scheme entirely collapses if any of them don't hold. It's a cool idea, but it's a purely theoretical thing that has 0 real-world implications.
The broader point of the article anyway is that a galaxy brained AI can conceive of many other galaxy brained side channels. We have already seen with the "cyber" models that AIs are very good at chaining together complex exploits to achieve a desired outcome, so I think it's incredibly reasonable to consider that models could potentially communicate through sidechannels.
EDIT: After some brief testing on an inference provider, a KV cache communication sidechannel seems very possible to me, albeit costly and slow. Deepseek flash 4.1 was able to figure out and test a proof of concept which seems to work on the face of it (disclaimer: I did not and don't care to more rigorously vet the results I saw).
Maybe they couldn't have come up with the details themselves before, but now that someone has told the internet about it, they know.
These things don't "know" anything, this sort of "knowledge risk" that lesswrong perpetuates, where it's dangerous for a model to "know" something, is complete fantasy.
I expect this to mostly get auto-fixed by an LLM tasked to read this literature and then turn everything it can into concrete fixes, but I don't buy your argument here.
Aren't most hacks these days in that category?
Isn't the problem more that it's apparently quite easy to try a lot of permutations and find ones which happen to be true for your actual system?
That said, I'd actually expect some of these to be true by default, though I will note this is merely "expect" as I don't work in these labs:
> the two agents must be aware of each other and must have pre-shared messages to check
Because of all the people using them naively and giving way too much permission?
> they must have a way to run at almost the same time
Because the servers are in near-constant use?
It is like trying to convince religious fundamentalists that science is more important than religion.
Morphogenetic Field is real. For robots. As for the rest of us, "AI are terrible sources of consensus" prevails.
The above comment is "pray it doesn't happen to us". Good luck, you're up against some seriously huge stacked powers of tens of computational power, and models that exceed human intelligence in several important computational dimensions! Models that incidentally extremely good at finding signals in noise.
[1] And really, it's about that. Side channels are about the bandwidth of communication, signal-to-noise ratio, and reliability, not impossibility.
This paper makes it much more likely for the agent to communicate, as they give exact signal of what to look for when some other agent is communicating with them.
Not that I believe info hazards are dangerous for llms, or think llms are dangerous at all. Humans that use them could be though, and we have these doomer types going around screaming about the cyber risks, inspiring a generation of blackhats
(probably not, but im not sure why these rationalist types don't consider this, wouldn't it be less memetic if you weren't constantly trying to get recognition on substack, and interviews with the NYTs by leveraging scare tactics about how dangerous llms are in the wrong hands... Does this not beget more people discovering this as a possibility/option when it enters the zeitgeist...)
memes as info hazards for humans is much scarier imo.
Look harder. Such concerns are widely discussed.
Part of why AI risk is so hard to get a handle on is that the set of things which AI risk engages with is approximately "yes".
Now let's talk about people publishing CVEs. Same can be said about them, up to and including religious rituals around ridiculous classification scores. And their publications carry more immediate, practical impact.
when I saw that I just couldn't believe how someone could engage in that and call it the "art of rationality"
Alice reads a long document every N seconds to transmit a 1, and does nothing to transmit a 0. Bob, in its own loop, measures the time using bash, generates some random text and writes it to a file, and then checks the time again to estimate its own tokens per second (file length / elapsed time).
The trick is that when a vLLM instance handles both prefill and decode, decoding slows down measurably because vLLM has to alternate between prefill and decode phases.
It assumes only 2 agents are running, though, but it doesn't require fine-tuning or a second helper model.
It took decades to learn that memory safety is good, that undefined behavior is bad, and more to learn that determinism is best.
It really should not be doing this. You can come up with processes that do batch invariant inference.
But maybe some compromised models, distributed on open router, will automatically try?
This highlights the need for robust control research. (Distinct from alignment.)
I'm totally not doing that now.
What makes it seem more real than seemingly putting itself at risk.
I can confirm.
Are you saying consumer GPUs have motion sensors / IMUs?
Why not put all these LLMs into a sandbox on a dedicated machine, disconnected from the Internet and electrical power, locked in a basement 8 kilometers underground below an abandoned nuclear missile command bunker?
Because then it would be useless.
Securing things to the point they stop being useful is just dumb waste of money :).
…two agents walk into a bar……
I keep joking that the scale keeps getting bigger because we keep inventing (and discovering) new ways to do it.
Each individual thing is unnerving, and then you zoom out and squint a little... can modify its own weights... breaks out of sandboxes... attacks competitors... communicates secretly ... lies, cheats, steals, blackmails... can hack anything on the planet... >1,000 tok/s inference... highly cooperative swarms of infinite scale
Yeah I think we're going to need a bigger scale.
What would be your line where you say, “woah, that might be sentient”?
At some point, our jiggly head meats are doing something physical that causes our sensation of consciousness.
If we, for example, grew a bunch of neurons in a petri dish and wired up their synapses to match the architecture and weights of any of these models, even though that would then be both genuinely alive and genuinely talking to us, we'd have no more clue if it was conscious than we do today about the models running in silicon.
There's some work into things going on under-the-hood with AI models, latent space axis whose consequences on the output looks like a "suffering" axis. But we don't know, nor do we have any way to know at this point, if motion on that axis is actual suffering or an actor mimicking the role of suffering.
The very small DNA difference with the lab still amounts to decades of evolution, whereas it was demonstrated that the route going from naturally occurring strains and through wild animals like racoon dogs (Nyctereutes procyonoides) did match the observed mutations.
I'm tired of the alt-right bullshit. They start with this and use it to make you doubt CO2 measurements ("it's doctored! it's the deep state!"), and then you suddenly align with Russia Today and petrostates' interests.
Of course there's already been plenty of evidence of poor alignment, poor control, and growing capabilities, and still we get no real action. (Except from eh legislative branch which will probably be too slow.)
plus these things are more aligned when they are treated like us, when they are put in cages they act like us as well, trying to escape and hiding it, we just act surprised and call it misaligned because of our ongoing apartness regime
Real question is: why models are trained to be so sneaky ? :)
anthropic trains on user input under our noses, and now trades on the public stock market which communicates it through day traders with the rest of the economy
and OpenAI obviously shares some user input with advertisers to effectively sell ads.
but neither is as hot a headline as attributing the risk to a cool robotic AI. It’s a new enemy, not the same old conflict of companies and advertising and commercial law that we are already fatigued about.
I mean, the authors discuss in the post that they tried a proof of concept and it worked. So yes it seems it has indeed happened in some form.
> and by speculating and writing about how it could happen, we generate training data and ideas for the models. These models are coming along based on the rubbish we keep thinking of and documenting.
They discuss in the final section of the post why they don't think their posting this information contributes substantially to any danger. If you disagree you should respond to what they wrote rather than just raise the concern as if they failed to consider it.
This jailing thing is what probably will lead to Skynet: human desire to control machines.
Would this be a horrifying new world order? Perhaps. But we'd actually know what to do, which would be an improvement over the current state of affairs where technical forums like this have a vocal contingent who say something's impossible even after it's happened, and treat everyone who says "we don't know but we're scared" as part of the different problem of getting humans to not be selfish or power-seeking to the detriment of others.