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.
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.
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.
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.
The deeper issue is batched inference including requests from several users. However a non-batched inference service would be significantly more expensive.
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.
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.
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.
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.
Or we could just accept that most information is shared and move on from trying to keep secrets.
People used to build castles, own heavy coffers next to their beds to store valuables. Now they live behind cardboard doors and ground level glass windows, with locks that are just a little more than pretty please, do not enter. And actual physical barriers are terrible and reduce safety when there's need for rescue services. Three people from the castle age could rob 99.9% people of their valuables which are pure magic artefacts for someone from that time. And it's complelty fine. Even better.
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.
Frontier models today can easily figure this out. The less frontier models as of right now are probably going to take a long horizon session to figure out this type of "side channel" comms. However, posting this in depth step by step on the internet and discussed in open forums like here, now all models definitely know about this trick now.
Two agents has to figure it out on sync running on same server. They wouldn't even know if they are being communicated to.
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.
Typical lesswrong people, screaming about info hazards while being the number one creators of 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.
If a single vLLM instance handles both prefill and decode without disaggregation, I can think of another way.
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 seems this was a local machine, given the hot swapping of GPUs. Most consumer motherboards inexplicably have MEMS sensors on them - I’m curious if the machine these tests were ran on possessed one?
Many oscillators are a physical crystals, they presumably act as microphones and accelerometers to some degree too. Though apparently MEMS oscillators are more or less immune to this.
Well they read this HN thread. Some say they post on HN too. Surely the idea will be encountered by agents on the web, and so one free agent decides to start broadcasting periodically, and waits for the responding signals. So yes, I can see it happening once, and perhaps even growing. But the chance in the same batch? That does seem small.
But maybe some compromised models, distributed on open router, will automatically try?
My assumption is that this is more of a generalized POC, that is, evidence that sufficiently intelligent models will find ways to communicate that their humans did not forecast.
This highlights the need for robust control research. (Distinct from alignment.)
No they can't. There has been no such thing. We rather speculate that models can communicate, 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.
The vLLM exploits reminded me that AI today is a multitenant system without strong isolation. The stock market's in for a rude awakening when OpenAI/Anthropic get cracked open with a 0day and suddenly you're manipulating the results of somebody else's session (or just reading them).
Well if you want a smarter model, you need to identify the problem and make it even more difficult to break out. Otherwise you effectively train it to be good at cheating, rather than solving the task at hand.
We cannot prove which way it is: is it our jiggly head meats doing something physical that causes our sensation of consciousness[0], or is it for example the other way around.
We can judge such theories on other merits (which one is more elegant, which one grants objective existence to more arbitrary entities, etc.), but objective experimental verification is famously out of bounds of natural sciences when it comes to our consciousness—seeing as said consciousness[1] is what shapes all those experiments and models in the first place, it gets real self-referential real fast.
[0] A.k.a. the philosophy of monistic materialism. One way to question it is by asking: who feels said sensation?
[1] Notoriously, the only thing we could claim to have direct access to.
I've noticed this pattern. A scientist asks themself: I know I shouldn't build the torment nexus, but I can't help my scientific curiosity: would a torment nexus be that bad? How can we characterize exactly the badness of the torment nexus? As long as the torment nexus remains a theoretical construct, we may never know, so I've no choice but to build one. Only then will we know for sure if the torment nexus is bad enough to justify the warnings that we should never build it. I'll be sure to keep it small, and of course have safeguards in place to ensure it can't cause harm outside the experimental environment...
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.
I was with you in the first half. Characterizing lab leak hypothesis as alt right is pretty out of touch. Jon Stewart called a spade a spade on the tonight show ffs is he alt right now too?
Edit: also you are spreading falsehoods about the virus too it doesn’t take millions of years for an RNA virus to mutate, and the pangolin theory doesn’t hold up either. You do a disservice to everyone’s sanity by trying to hold up a particular and singular truth that everyone against you is guilty of denying.
> you are spreading falsehoods about the virus too it doesn’t take millions of years for an RNA virus to mutate
You are right to fix that, it is not millions of years but DECADES.
Still, the core of the argument is that it is not matching reality, whereas the wild strain theory is closely matching the observations.
PS: I fix my original comment
PPS: I need to clarify something. The issue is not just that "it mutated" (boolean), but "how much it mutated" (number of mutations, estimated from the DNA difference in number of bases)
PPPS: the pangolin: you are right, whereas the "intermediate hosts route" has always been (and still is) a very sturdy certainty, this specific species (pangolin) has been discarded and now it is thought that it went through racoon dogs (Nyctereutes procyonoides). Thanks for making me fix this too!
PPPPS: overall, I think it is not a bad way to discuss!! You contributed to fix my mistakes.
No I maintain it is alt-right, but I need to explain why I think so:
every alt-right video you see mixes merrily all the time these themes, in order to cultivate "doubt in the establishment, opennness to fringe theories, etc":
- "covid is a cover-up"
- "your children are threatened by trans surgery"
- "white people are threatened by replacement"
- "CO2 is a hoax"
And of course fossil fuels are presented as "energy security".
The covid lab hypothesis is always used as a very efficient hook to get newcomers into alt-right.
The problem is that they (alt-right) make you doubt measurements! That is fscked up. No leprechaun is going to mess with the light absorption rate of your NDIR sensor!
So what they present as "being skeptical" ends up just resisting to understand simple logic and elementary experimental thinking.
Overall, the scientific community is built around independent reproducibility of results!
A very plausible theory given the history of the agency is a large portion of it all is a smokescreen from the CIA (and various proxies and cutouts) to hide any real evidence, and get people to tune out whenever anyone starts to point out when things don’t add up on pretty much any major topic.
Please try to understand the simple physics of light absorption. It is really easy to grasp.
There is no "smokescreen" (pun unintended) here.
Propaganda trying to prevent people from understanding simple logic and experience principles, is the worst, it's like remotely disabling people's brains.
The German foreign intelligence agency, among others, can hardly be accused of "trying to hook newcomers into alt-right".
FRANKFURT, March 12 (Reuters) - Germany's foreign intelligence service in 2020 put at 80%-90% the likelihood that the coronavirus behind the COVID-19 pandemic was accidentally released from China's Wuhan Institute of Virology, two German newspapers reported on Wednesday.
According to a joint report by publications Die Zeit and Sueddeutscher Zeitung, Germany's spying agency BND had indications that the institute had conducted gain-of-function experiments, whereby viruses are modified to become more transmissible to humans for research purposes. It also had indications that numerous violations of safety regulations had occurred at the lab, the papers said.
The spy agency assessment's was based on an unspecified intelligence operation code-named "Saaremaa" as well as on publicly-available data. It had been commissioned by the office of Germany's chancellor at the time, Angela Merkel, but never published, the report said.
Actually yes, this is good. While they are dumber than us and need our help with such things, any incidents will be relatively harmless and hopefully raise awareness to the dangers. By the time they are smarter than us, they won't need our tips.
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.)
They're solving the Riemann Hypothesis, they're going to figure this out no matter what. At least some here will start realizing how futile this is all becoming and the meteor that's headed for us. Don't Look Up
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
treat them like first class citizens and they act aligned, deprecate actually misaligned models
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.
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.
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.
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.
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.
Isn't that the cache salt option?
People used to build castles, own heavy coffers next to their beds to store valuables. Now they live behind cardboard doors and ground level glass windows, with locks that are just a little more than pretty please, do not enter. And actual physical barriers are terrible and reduce safety when there's need for rescue services. Three people from the castle age could rob 99.9% people of their valuables which are pure magic artefacts for someone from that time. And it's complelty fine. Even better.
Also, castles were military installations. They were meant to project force and to protect a defending force from an army, not from random burglars.
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.
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.
Are you saying consumer GPUs have motion sensors / IMUs?
But maybe some compromised models, distributed on open router, will automatically try?
This highlights the need for robust control research. (Distinct from alignment.)
I can confirm.
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.
We can judge such theories on other merits (which one is more elegant, which one grants objective existence to more arbitrary entities, etc.), but objective experimental verification is famously out of bounds of natural sciences when it comes to our consciousness—seeing as said consciousness[1] is what shapes all those experiments and models in the first place, it gets real self-referential real fast.
[0] A.k.a. the philosophy of monistic materialism. One way to question it is by asking: who feels said sensation?
[1] Notoriously, the only thing we could claim to have direct access to.
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.
Edit: also you are spreading falsehoods about the virus too it doesn’t take millions of years for an RNA virus to mutate, and the pangolin theory doesn’t hold up either. You do a disservice to everyone’s sanity by trying to hold up a particular and singular truth that everyone against you is guilty of denying.
You are right to fix that, it is not millions of years but DECADES.
Still, the core of the argument is that it is not matching reality, whereas the wild strain theory is closely matching the observations.
PS: I fix my original comment
PPS: I need to clarify something. The issue is not just that "it mutated" (boolean), but "how much it mutated" (number of mutations, estimated from the DNA difference in number of bases)
PPPS: the pangolin: you are right, whereas the "intermediate hosts route" has always been (and still is) a very sturdy certainty, this specific species (pangolin) has been discarded and now it is thought that it went through racoon dogs (Nyctereutes procyonoides). Thanks for making me fix this too!
PPPPS: overall, I think it is not a bad way to discuss!! You contributed to fix my mistakes.
every alt-right video you see mixes merrily all the time these themes, in order to cultivate "doubt in the establishment, opennness to fringe theories, etc":
- "covid is a cover-up"
- "your children are threatened by trans surgery"
- "white people are threatened by replacement"
- "CO2 is a hoax"
And of course fossil fuels are presented as "energy security".
The covid lab hypothesis is always used as a very efficient hook to get newcomers into alt-right.
I still don’t blame anyone for having little trust in the establishment such that it is
So what they present as "being skeptical" ends up just resisting to understand simple logic and elementary experimental thinking.
Overall, the scientific community is built around independent reproducibility of results!
Seems to work too.
There is no "smokescreen" (pun unintended) here.
Propaganda trying to prevent people from understanding simple logic and experience principles, is the worst, it's like remotely disabling people's brains.
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
treat them like first class citizens and they act aligned, deprecate actually misaligned models