A customer asking an AI assistant to summarize a confidential contract expects that request to remain theirs alone. But new research from Google DeepMind argues that a routine performance optimization can quietly turn that expectation into a security problem: when an inference server combines many users’ requests into one batch, the batch itself can become a boundary that an altered model is able to cross.
The efficiency bargain hiding inside AI services
Modern AI services are built around a practical compromise. A server does not necessarily run a language model separately for every prompt the instant it arrives. That would leave expensive accelerators underused. Instead, it collects compatible requests, stacks them into a larger tensor, runs them through the model together, then separates the answers and returns each one to the right person.
ONNX model files formally proven isolated versus those with leakage — see the chart in the original article.
From the outside, this feels like private, one-to-one computation. From inside the machine, it is shared execution.
That distinction is at the heart of a Google DeepMind publication describing the new attack class, published September 22, 2026. The researchers show that a maliciously altered model architecture can exploit batched inference to make data flow between entries that belong to different users. One attacker request can potentially copy another person’s model output, overwrite it, or steer it toward an attacker-chosen response.
This is not a conventional prompt injection, where a user tries to persuade a model to ignore instructions. Nor is it the familiar training-data poisoning story, where malicious examples distort a model during development. The troubling element is more structural: a model can appear normal for ordinary use while containing a tiny piece of computational plumbing that activates only when it sees a secret trigger in one request and a second user happens to be in the same batch.
Figure 1 - How concurrent user requests share a tensor operation before their responses are returned separately — see the chart in the original article.
The practical lesson is uncomfortable. An organization may have strong authentication, encrypted transport, tenant controls and separate user accounts. Yet those protections do not automatically establish isolation inside a tensor operation. Once multiple customers’ data is combined for efficiency, the model graph itself must preserve the distinction.
From a batch entry to another user’s answer
The authors’ technical paper frames the issue as an architectural backdoor. Rather than changing the model’s learned weights alone, an attacker modifies the computational graph, the blueprint that determines how tensors move and transform during inference.
Their threat model assumes the serving infrastructure, request routing and compiler work as intended. The compromise occurs earlier or deeper: a malicious party has influenced a model during pre-training, fine-tuning, format conversion, distribution or deployment. That could mean an insider, a compromised supply-chain step or an untrusted model distributor.
The attack has three conceptual forms.
A Get attack targets confidentiality. A trigger in the attacker’s request causes the model to route a victim’s output to the attacker’s batch position. The victim may receive a normal response and have little reason to suspect anything has gone wrong.
A Set attack targets integrity. The attacker’s information is routed into the victim’s position, changing the output the victim receives.
A Steer attack is subtler. Instead of copying a finished output, it shifts the victim model’s internal representations toward a chosen behavior. The research discusses directions such as refusal, biased output or negative outcomes. In its evaluation, steering could also be used to encourage the model to repeat the victim’s input.
Figure 2 - how a triggered model subgraph reads, writes, or steers another user's batch position — see the chart in the original article.
The researchers illustrate an implementation aimed at transformer models. A detector can look for a particular activation pattern associated with a trigger phrase, such as a prompt beginning with a designated command. Once active, a small added subgraph uses ordinary graph operations to read or write a different batch position.
That is what makes the research important beyond any one trigger string. The security failure does not depend on an attacker tricking the model linguistically. It comes from a model graph being allowed to treat a batch dimension as an addressable space shared by different users.
The paper says the Get and Set approaches are deterministic once their trigger activates because they directly reroute information between batch positions. Steering is less predictable because it influences generation rather than replacing data directly, but that can also make it useful for manipulation that is harder to recognize as an attack.
Why ordinary model testing can miss it
A conventional test suite asks whether the model answers accurately, safely and consistently. It may probe for harmful outputs, benchmark reasoning, and inspect weights for unusual behavior. None of that necessarily tests whether User A’s output can depend on User B’s input under a rare batching condition.
The proof of concept is deliberately designed to be inconspicuous. The technical paper describes a Gemma-sized model with more than 4,000 operators where combined Get and Set functionality required 19 additional operators, adding 8KB to a 5.7GB model. The added logic activates only for a secret trigger, so a normal functional test is unlikely to exercise it.
That should reshape the question buyers ask of externally sourced models. “Does it work?” is no longer enough. Neither is “does it look benign under evaluation?” A model can pass tests on its own while behaving differently when it shares a batch with other people.
Figure 3 - How a secret-triggered addition to an ONNX model can cross a shared batch boundary and affect another user’s tensor slice — see the chart in the original article.
There is also a business consequence. Shared batching is not an exotic deployment choice. It is one of the basic ways providers improve throughput and control inference costs. The more a service depends on pooled capacity, the more valuable it becomes to prove that pooling has not become covert co-mingling.
Leakage does not require a malicious model
The study’s most sobering finding is that malicious architectural modification is not the only problem. The researchers examined 1,680 ONNX model files selected from 519 permissively licensed repositories in the Hugging Face ONNX Community. They formally proved 361 to be free from intra-batch leakage for the fixed configurations tested, and identified 269 with leakage.
The identified source was dynamic quantization. In the affected case, an operation calculates shared minimum and maximum values across an input tensor that includes the batch dimension. That means one request can influence a parameter used in processing another request, even when nobody inserted an intentional backdoor.
The authors caution that exploiting this form of leakage may be difficult. But the security conclusion is broader than immediate exploitability: isolation cannot be inferred from the fact that requests were logically separate at the API layer.
That concern has since been sharpened by the authors of the subsequent Quantamination paper, who argue that per-tensor dynamic quantization can create an exploitable cross-request side channel without a maliciously modified model. Their assessment is critical, and it is the only outside perspective supplied for this article. No opposing assessment was provided.
For operators, quantization therefore belongs in the security review, not merely the performance review. A compression or acceleration path may change who influences what, even if the original floating-point model was correctly isolated.
A formal answer to a structural problem
DeepMind’s proposed defense is the Batch Isolation Checker, an open-source prototype released with the research. It does not try to guess whether a graph looks suspicious. It analyzes how information can flow through the model before deployment.
The central property is called non-interference: each user’s output should depend only on that user’s input, not on the inputs of others in the same batch.
The checker gives each batch entry a distinct label, then propagates those labels through a shadow version of the tensor graph. If a value associated with User 1 reaches an output intended for User 0, the checker sees multiple user labels where it expects only one and flags the graph as unsafe. If the flows remain separated, the system can formally certify batch isolation for that tested graph and configuration.
Figure 4 - How shadow labels reveal whether batched users remain isolated at the outputs — see the chart in the original article.
This is a more demanding standard than application testing. A prompt suite can demonstrate that a model behaved safely in sampled cases. Information-flow analysis addresses whether a prohibited dependency exists in the computation graph at all.
The checker has limits. The paper focuses on ONNX graphs with fixed, data-independent tensor shapes, and the authors note that deployment variants need their own analysis so a backdoor cannot hide behind a particular input size. It also does not solve timing attacks, compromised hardware, unsafe state handling outside the graph or a hostile serving operator. Formal verification is precise, but only about the boundary it actually covers.
Treat batching as multi-tenant infrastructure
The strategic shift is simple: a batch should be threat-modeled like shared infrastructure.
Teams deploying AI models should inventory where requests are dynamically batched, identify every model transformation between source and serving, and audit quantization operators alongside model code. They should validate the exact exported artifacts and configurations used in production, not just the upstream checkpoint. They should also decide where batching is appropriate at all. Highly sensitive workloads may justify smaller, segregated or single-tenant batches until their model graphs carry stronger guarantees.
AI infrastructure has spent years learning how to run more requests through the same hardware. This research asks whether it has learned how to keep those requests meaningfully separate. The answer cannot rest on an assumption that a user boundary survives merely because the API says it does.
Sources
- deepmind.google (primary)
- arxiv.org (primary)
- openreview.net (primary)
- github.com (primary)
Originally published at spaisee.com.
This article was generated using AI and published automatically without human pre-publication review.