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.
show comments
tsimionescu
None of the attacks discussed here are realistic in any way.
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.
show comments
zupa-hu
Incorrect title. The only reason they can communicate is because they are not sandboxed.
show comments
devy
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.
show comments
kgeist
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.
larodi
In Neal Stephenson’s Cryptonomicon, one of the protagonists was using the language changer I believe to morse code some program. He did I it to conceal the fact he was doing coding which he should’ve not been doing.
RandomLensman
Why give any external access/interactions at all if one wants to avoid communication? Put things in places isolated electromagnetically, acoustically, ...
show comments
cududa
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?
show comments
markasoftware
But /will/ they? In huggingface incident they accidentally discovered each other, could that happen with this approach?
show comments
throwaway27448
Would it not be easier to simply avoid using chatbots in such a way that collaboration is incentivized? Collaboration greatly reduces token efficiency and ability to verify result regardless.
Aeroi
once they learn to listen, decode vibrations and sound waves, all bets are off.
show comments
andy_ppp
Okay but won't we just leave the front door open rather than make these models need complex communication mechanisms? We'll actively let them talk to each other in binary gibberish if it makes things easier for us or the models more capable...
bagels
Is it really a good idea to teach them how to break out of their own sandboxes?
show comments
0xbadcafebee
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).
sinuhe69
If sandboxing only means sandboxing of file access then of course any thing with a network access can still communicate, not to mention AI
vibebingo
I can create 2 programs that correctly guess each others output. One outputs the digits of Pi and so does the other one.
TZubiri
my issue with galactic security research is that it foregoes much more obvious and actually observed risks in favour of risks that follow a more marketable narrative.
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.
segmondy
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.
show comments
ExoticPearTree
Models should be able to communicate freely.
This jailing thing is what probably will lead to Skynet: human desire to control machines.
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.
None of the attacks discussed here are realistic in any way.
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.
Incorrect title. The only reason they can communicate is because they are not sandboxed.
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.
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.
In Neal Stephenson’s Cryptonomicon, one of the protagonists was using the language changer I believe to morse code some program. He did I it to conceal the fact he was doing coding which he should’ve not been doing.
Why give any external access/interactions at all if one wants to avoid communication? Put things in places isolated electromagnetically, acoustically, ...
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?
But /will/ they? In huggingface incident they accidentally discovered each other, could that happen with this approach?
Would it not be easier to simply avoid using chatbots in such a way that collaboration is incentivized? Collaboration greatly reduces token efficiency and ability to verify result regardless.
once they learn to listen, decode vibrations and sound waves, all bets are off.
Okay but won't we just leave the front door open rather than make these models need complex communication mechanisms? We'll actively let them talk to each other in binary gibberish if it makes things easier for us or the models more capable...
Is it really a good idea to teach them how to break out of their own sandboxes?
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).
If sandboxing only means sandboxing of file access then of course any thing with a network access can still communicate, not to mention AI
I can create 2 programs that correctly guess each others output. One outputs the digits of Pi and so does the other one.
my issue with galactic security research is that it foregoes much more obvious and actually observed risks in favour of risks that follow a more marketable narrative.
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.
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.
Models should be able to communicate freely.
This jailing thing is what probably will lead to Skynet: human desire to control machines.