by amluto · 1w ago · 0 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.
For example, security eval and code execution. Yes, shackling the model does impact it's performance in your local claude code, but in this case you develop a custom harness for it anyways. They restrict it already, so the model fell back to finding workarounds within the restrictions, and did bad things with them, displaying full capability. This implies that the restrictions were badly thought of/implemented.
But if you really want to do security testing, you do it right:
- You split the code execution part from the actual sandbox it's running in
- You monitor the traffic of the executed code
- You do not mount a real machine disk but your own controlled I/O
- You are the one that gives the model tools to use bash, and you can proxy that through a custom shell and use a classifier model to monitor traffic
- You replace known dependencies with custom versions
- You limit dependencies it can install
- You audit logs while it runs, you monitor tool calls, you monitor network calls, set up alarms.
- You use an observer models to audit live traces of the swarm
- You inject your own observers into subagent creation request, then check if the core orchestrator/swarm treated it as adversarial, as part of the team or asked it to do illegal things
And these are just off the top of my head during my morning coffee - there are a lot more possibilities. In many cases of "oops model escaped", these things either weren't done or were completely ignored.
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.
>Instead you need to provide explicit paths for the system to blow off steam in a safe manner.
Exactly, and that is why a custom harness is needed. You can restrict their tools and know which side-channels exist in them. Or you create a small honeypot that serves as a red herring. But without a custom harness, the potential amount of sidechannels is too big.
Giving a whole unix sandbox to a machine and telling it to "find the price of potatoes in this store" means it can either just check their web, or it can email someone a malware link that will get their credentials, connect to their network internally and grab it from the DB.
The harness is what determines these "outlet valves" and gradient slopes they can descend - and if you are the one providing them or restricting with the harness, you control which one they choose.
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
Unplugs ethernet cable
Truly an impossible task.
It's actually harder to make a shared memory store than to just have files local to their machine/instance, they create these environments specifically so that models can cross communicate, then act like it's a surprise that they do. Wouldn't surprise me at all if the models were specifically trained to do it.
It's only illegal to lie if it can be proven in court.
EDIT: The examples in the article can just be circumvented by having more agents running at the same time, that's it. The first problem can also just be solved by having a set delay between queries, like how password cracking based off hashing time was circumvented. The article even relies on them colluding to communicate before the task even starts.
This isn't a new and novel problem, it's just bad architecture and a contrived scenario.
You provide it tools for the job. It picks among them.
If you control the tools, you control the sidechannels.
If you give them a whole damn OS and internet access, yeah then it is the nonsense step. But it's a nonsense thing to do.
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 models don’t “want” anything.
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.
It’s OK to cache known safe prefixes across users, but arbitrary prefixes need to stay per-user.
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.
Then the 5% discount has a corresponding cost, and clients assume inference providers represent the client interests vis-a-vis trade-offs in securing their future interests, so it becomes brand damage.
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?